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
I have a solution now :
I got the help of this answer: https://community.atlassian.com/t5/Sourcetree-questions/How-to-update-HTTP-S-credentials-in-sourcetree/qaq-p/297564.
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".
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;)
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...
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