Solved SourceTree Error: remote: HTTP Basic: Access denied fatal: Authentication failed

This post shows you how to solve the following error in SourceTree when fetching, pushing, pulling on your repository.

Error: remote: HTTP Basic: Access denied fatal: 
  Authentication failed for 'https://path-to-your-repository.git/'.

Basically, we will get that error when your account has been changed. Let’s follow the below steps to solve that error.

 

Step 1: Close your SourceTree app

Firstly, let’s close your SourceTree app.

 
Step 2: Find and delete the passwd file

If you use Windows, you can find the passwd file in this location:

C:\Users\YOUR_USER_NAME\AppData\Local\Atlassian\SourceTree

If you use MacOS, you can find the passwd file in this location:

~/Library/Application Support/SourceTree

 

Step 3: Open your SourceTree app and try again

Now you can try to fetch or pull, SourceTree will then prompt you for your password and rewrite the cached credentials.

Let’s us know if it solves your problem.

guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x