Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use Git Extensions with a Bitbucket repository?

I have repository on both github.com and bitbucket.org, and I am very familiar using Git Extensions for all repository functions... But when I started using bitbucket.org repositories I have to use TortoiseHg SVN for it ... so I want to ask that is there a way I can use Git Extensions for Bitbucket repositories?

like image 730
Safran Ali Avatar asked Aug 13 '11 22:08

Safran Ali


People also ask

How do I open a Git repository extension?

To open an existing repository, simply click the link to the repository, or select Open repository (from where you can select a repository to open from your local file system).

Does git extensions include Git?

Introduction to Git ExtensionsIt implements classic GIT by using GUI (Graphical user interface), basically driven by a set of dedicated commands, hence maintaining the version control system intuitively.


2 Answers

I haven't fully tested it, but these steps allowed me to clone a Bitbucket repository in Git Extensions.

You can use PuTTY to generate a public/private SSH key, then add that key to Bitbucket.

  1. Run GitExtensions\PuTTY\puttygen.exe
  2. Click Generate
  3. Click Save public key (as a text file)
  4. Click Save private key (as a ppk file)
  5. Run GitExtensions\PuTTY\pageant.exe C:\path\to\ppk-file.ppk
  6. Log into Bitbucket
  7. Go into Account settings (SettingsSecurity → SSH keys*)
  8. Paste your public key into the SSH keys text input as (spaces are important, do not include square brackets around the public key):

    ssh-rsa [AA-YOUR-PUBLIC-KEY-ALL-ONE-LINE-SPACES-REMOVED-==] [email protected]

  9. Click Add key
  10. In Git Extensions, click Clone repository
  11. Use the SSH repository link on Bitbucket as the repository to clone
  12. Click Load SSH key
  13. Browse to and load the ppk file
  14. Click Clone
like image 58
ryanttb Avatar answered Sep 28 '22 10:09

ryanttb


I found that most of this worked for me with just a few small changes.

  1. Run GitExtensions\PuTTY\puttygen.exe
  2. Click Generate
  3. Click Save public key (as a text file)
  4. Click Save private key (as a ppk file)
  5. Didnt have to run this step --Run GitExtensions\PuTTY\pageant.exe C:\path\to\ppk-file.ppk--
  6. Log into bitbucket
  7. Go into Account settings
  8. Paste your public key into the SSH keys text input as (spaces are important but with no email address on the end): ssh-rsa [AA-YOUR-PUBLIC-KEY-ALL-ONE-LINE-SPACES-REMOVED-==]
  9. Click Add key
  10. In Git Extensions, click Clone repository
  11. Use the SSH repository link on bitbucket as the Repository to clone ( i.e. [email protected]:yourname/repo.git)
  12. Click Load SSH key
  13. Browse to and load the ppk file
  14. Click Clone

Also i found that i was having a problem saying that the machine i was looking for might not be the correct one. I found this very helpful and if you are having problems might be useful Using the SSH protocol with Bitbucket and very quickly helped me through that.

I hope this helps

like image 32
Chadwick13 Avatar answered Sep 28 '22 10:09

Chadwick13