Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Cannot fetch or pull on Sourcetree for windows

When trying to fetch or pull from my remote in sourcetree, if comes up with the error:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin
remote: HTTP Basic: Access denied
fatal: Authentication failed for "[my remote]"


I don't know why it is doing this as I have the proper gitlab access and this hasn't been an issue previously. Under settings/authentication, it keeps asking me to authenticate my log in everytime I open this. I have tried re cloning my remote but it keeps coming up with authentication errors and the credential pop up does not appear


2 answers

I have the same problem ! :(

I have a solution now :

I got the help of this answer:

Me, I went into the windows file explorer, and noted in the search bar "Sourcetree", and chose the "Sourcetree" folder with this path "C: \ Users \ CS \ AppData \ Local \ Atlassian".

Mr Enecco Jacobelli,

Thank you  for your answer.

Now I can Push and Fetch from/to SourceTree to/from GitLab.

0 votes

I had the same problem. The suggested solution of removing the passwd file didn't work for me. But Sourcetree has a built-in solution:)

In the small menu bar at the top select => Tools => Options => Tab Authentication

There you can choose your gitlab account and "edit" it. The edit box offers an option to refresh Personal Access Token. This will give a Windows popup where you can enter the new PAT. And then be patient for about 20 seconds;)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,838 views 127 27
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you