Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't Connect Sourcetree and BitBucket

ikkiworks
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 15, 2018

Hi All, noob question here, be gentle. Basically I can't get Sourcetree and BitBucket to talk to each other (current versions of both apps, Windows 10). Seems like the 2 main methods are https and ssh. Https: BitBucket>Source> 'Let's put some bits in your bucket' - select HTTPS, copy URL. Go to Sourcetree, Repository>Repository Settings>paste in the copied URL>OK. Select commit, click Push>Select All >OK. Get "fatal: I don't handle protocol 'git clone https'' error. Googling gives a zillion hits but nothing that seems to help.

Right, so let's try SSH. First steps as above except select SSH in BitBucket instead of HTTPS. Then once the URL has been pasted into Sourcetree, Tools>Create or Import SSH keys>Generate keys. Generate keys, copy public key, save public and private keys. Over to BitBucket, click on avatar > BitBucket Settings > SSH keys > Add Key > give it a label, paste in the copied public key > Add Key. All good. Back to Sourcetree, Tools > Launch SSH Agent > double-click Pageant which opens in the system tray > Add key > navigate to saved private key, open it, key is displayed in Pageant > Close. Select commit, click Push>Select All >OK. Progress bar starts then error dialog "Authentication via ssh keys failed, do you want to launch the ssh key agent?" Click Yes, double-click Pageant in system tray, key is there > Close. Click Retry but then get the authentication error message and we're in an endless loop.

Google tells me that Atlassian have had a problem for ever with Pageant sometimes not being able to pick up the key, but that doesn't seem to be the issue here, as the key is displayed when I open Pageant. Doubtless I'm missing something very basic here but it's driving me nuts so if some kind soul could take pity on me and walk me through one of the methods, I really don't care which (frankly I'd settle for carrier pigeon right now) I'd be eternally grateful.

1 answer

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 19, 2018

Hi 


select HTTPS, copy URL. Go to Sourcetree, Repository>Repository Settings>paste in the copied URL>OK. Select commit, click Push>Select All >OK. Get "fatal: I don't handle protocol 'git clone https'' error. Googling gives a zillion hits but nothing that seems to help.

 

Any chance you pasted in a string which starts with "git clone https://....." into the repository settings? If so remove the "git clone" bit so it only starts with "https"

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events