Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I cannot pull/push with sourceTree but I can login fine in bitbucket.

rodismusic
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 29, 2022

I tried to generate App password on Atlassian and used that.  Then I went to sourceTree Options/Authentication and I click to refresh password. Entered that generated password and it said Athenticated! Then I go to pull and it failed.  This used to work with a previous version of sourceTree!

It fails even if I put in my Atlassian password!!  

2 answers

0 votes
Michał S
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!
December 10, 2022

On bitbucket.org go to left panel and click Personal Preference. In Left panel then click App Passwords.  Create your password.

Go back to SourceTree and in the SourcePath paste "https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git". Where USERNAME is your bitbucket username and the APP_PASSWORD is the password you have generated in previous step.

This worked on my Windows, after 2h fight :(

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2022

G'day! 

Thank you for contacting Bitbucket Cloud Support.

The most common issue customers are experiencing related to authentication in SourceTree is due to the deprecation of GIT username/password in favour of App Passwords:
https://bitbucket.org/blog/deprecating-atlassian-account-password-for-git-and-bitbucket-api-activity
We have a blog post however which explains the steps to troubleshoot this issue, please follow all of these steps accordingly (including uninstall/re-install) and this should resolve the issue:
https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968

 

When you are authenticating GIT over HTTPS to push/pull you will need to update your remote URL's to include the AppPassword:
git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
The same applies when performing git clone:
git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git
I would suggest ensuring also that all stored passwords related to authentication over GIT are cleared from your machine (ie Credential Manager for Windows, Access Keychain for Mac or /etc/shadow folder for Linux).

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events