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
Community moderators have prevented the ability to post new answers.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.