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?
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.
Run
GitExtensions\PuTTY\puttygen.exe
Click Generate
Click Save public key (as a text file)
Click Save private key (as a ppk file)
Run
GitExtensions\PuTTY\pageant.exe C:\path\to\ppk-file.ppk
Log into Bitbucket
Go into Account settings (Settings → Security → SSH keys*)
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]
Click Add key
In Git Extensions, click Clone repository
Use the SSH repository link on Bitbucket as the repository to clone
Click Load SSH key
Browse to and load the ppk file
Click Clone
I found that most of this worked for me with just a few small changes.
- Run
GitExtensions\PuTTY\puttygen.exe
- Click Generate
- Click Save public key (as a text file)
- Click Save private key (as a ppk file)
- Didn't have to run this step
--RunGitExtensions\PuTTY\pageant.exe C:\path\to\ppk-file.ppk--
- Log into bitbucket
- Go into Account settings
- 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-==]
- Click Add key
- In Git Extensions, click Clone repository
- Use the SSH repository link on bitbucket as the Repository to clone ( i.e.
[email protected]:yourname/repo.git
) - Click Load SSH key
- Browse to and load the ppk file
- 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.
It's been 10 years since the original answer was posted, and I can now get this working without using SSH:
- Log into Bitbucket, click on your avatar, and go to "Personal settings".
- Go to "App passwords", and click the "Create app password" button.
- Create a password for Git Extensions. When selecting permissions, choose "Read" and "Write" under "Repositories". You will be shown the password only once - make a note of it.
- Clone the repo in Git Extensions, using the HTTPS link from Bitbucket.
- When prompted to log in, keep the default user name (don't change it to your email address), and enter the app password.
- A web page will open for you to authorize Git Credential Manager to access your Bitbucket account.
- Once authorized, Git Extensions should start downloading the repo.
© 2022 - 2024 — McMap. All rights reserved.