The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Settings for Bitbucket Connection

Norbert Vorstädt
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!
June 14, 2023

I have not used SourceTree for a while and all of a sudden pushing to BitBucket will report: remote: Invalid credentials

I know my credential of my BitBucket account, which I logon to with my Google account. And in my account the SourceTree app is given access. What I am uncertain about is what to enter in the Remote Details dialog of Source Tree. I have:

Remote Name: origin

URL: https://bitbucket.org/<my username>   (this is probably the problem!)

Standard Remote: clicked

Remote Account: <my username> / Bitbucket

Anyone who can help get these straight?

Thanks

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Martin Runge
Community Champion
August 27, 2026

Hallo @Norbert Vorstädt

Your remote URL is the problem: it needs to be https://bitbucket.org/YOURWORKSPACE/YOURREPO.git, which you can copy from the repository in Bitbucket under Clone. Since you sign in with Google, there is no password Git can use. Create a token under Personal settings > App passwords with repository read and write permissions, then remove and re-add the account in Sourcetree under Tools > Options > Authentication using your Bitbucket username and that token. If it still fails, clear the old bitbucket.org entry from Windows Credential Manager or macOS Keychain Access, because Sourcetree keeps reusing the cached credential.

Cheers, Martin

0 votes
Norbert Vorstädt
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!
August 30, 2026

Hello Martin!

Your answer came a bit late (three years), but I appreciate it anyway. In fact, I had postponed pushing to bitbucket for the time being. Thanks to your answer I could reestablish the connection now. Pushing from SourceTree to bitbucket works fine again. So, yes, your answer did make a difference, even after three years!

Best,
Norbert

 

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events