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
4,361,127
Community Members
 
Community Events
168
Community Groups

Authentication OK but push fails with Gitlab

Hi,

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

Hi! 

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
TAGS
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...

79,101 views 135 29
Read article

Atlassian Community Events