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

Gitlab: HTTP Basic: Access Denied

Ken December 20, 2022

In Sourcetree, I have logged in with my Gitlab personal access token with ALL permissions, but it won't let me clone. I'm getting this error when trying to clone my repos

 

 

Image 2022 12 20 11 52 34.pngCommand: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://gitlab.com/xxxx/xx.git
Output:
Error: remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.com/xxx/xx.git/'

 

I have two factor enabled and I already read https://docs.gitlab.com/ee/user/profile/account/two_factor_authentication.html#troubleshooting. What i'm missing?

2 answers

1 vote
Ken December 20, 2022

I have tried Github Desktop software and it works like a charm with my Gitlab personal access token, so it seems SourceTree is broken

Henrik January 17, 2023

Hey Ken, 

I have exactly the same problem, could you find any solution?

Like Lorince Tawamba likes this
0 votes
Henrik January 18, 2023

I have deleted all Sourcetree related files under "C:\Users\username\AppData\Local\Atlassian" before reinstallation. This worked for me. I don't know exactly why that helped, but I assume there was a temporary file there with a wrong password.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events