I am on mac OS unlike this post:
I have password conf
So for me the problem was that I had created my GitLab account via linking my GitHub account to it. This meant that no password formally existed for the account as it was created via hotlink between GitHub and GitLab. I fixed it by going to GitLab Settings -> Password -> and writing the same password as my GitHub account had.
When I had the same problem,
I solved it by removing the file "passwd" in
C:\Users\<USERNAME>\AppData\Local\Atlassian\SourceTree
After removing Sourcetree will prompt for the password.
Note:
OS Version : win10
Sourcetree Version: 3.1
i removed gitlab credential from 'Credential Manager' in windows and pushed successfully
Just add your username before the domain:
https://**username**@gitlab.com/user/projectgit
And the assistant will ask you the password
Try this:
C:/Users/(YourUserName)/
.gitconfig
Same problem with Sourcetree On Mac
Solution: Delete the password in keychain access.
https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-quot-fatal-Authentication-failed-for-quot/qaq-p/201844
When you try to push again it will ask for your password.