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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Authentication OK but push fails with Gitlab


I have trouble pushing to my Gitlab repo.

I use Sourcetree 3.3.8 on Windows. I use HTTPS and a Personal Access Token to authenticate, and according to Tools -> Options -> Authentication -> my gitlab account -> Edit, authentication is OK. I'm able to pull from the repo. However when I try to push, I get the error message:

"remote: HTTP Basic: Access denied

fatal: Authentication failed for <repo url>"

Upon retrying the push, the list of branches is empty.

Weirdly when using 3.3.8 on another Windows machine, with the same authentication method (different PAT of course), it works fine. Both PATs have the same scopes.

2 answers

1 accepted

0 votes
Answer accepted

Pushing is working normally again.

First I updated the embedded version of git, which at least caused the branch to appear again in the Push pop-up. Upon doing the push a pop-up appeared asking me to select a credential manager. I downloaded the latest version of Git Credential Manager for Windows. Then I selected wincred in the credentials pop-up. (The pop-up was useful for this, since I too cannot currently launch the terminal in Sourcetree). 

0 votes


Can you make from git push? 

just curios is this on git level or just SourceTree stucked with configs

Suggest an answer

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

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,792 views 4 12
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