SourceTree 2.3.5 Authentication Error

When I try to push / pull I am getting auth errors.

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin _nick/test:_nick/test
Pushing to https://github.com/domain/Project.git
ERROR: Authentication error: Authentication required: You must have push access to verify locks
error: failed to push some refs to 'https://github.com/domain/Project.git'
Completed with errors, see above.

I attempted to use the git terminal, here is my trace. I noticed when I enter an incorrect password it outputs an error. when I enter the correct password the prompt continues without any output.

nick@LAPTOP ~/Documents/domain/Project(_nick/test)
$ git fetch
Username for 'https://github.com': userName

nick@LAPTOP-3GV274KQ MINGW32 ~/Documents/domain/Project(_nick/test)
$

 

I have deleted my password file
https://community.atlassian.com/t5/Sourcetree-questions/Getting-quot-fatal-Authentication-failed-for-quot-error/qaq-p/624663

I have attempted a personal access token and a basic password. please advise.

1 answer

Hello! Looks like you're trying to interact with GitHub. Rather than needing to enter a username and password, you can add a Remote Account that uses OAuth which may solve your authentication issues. Here's a step-by-step guide on how to do that:

oauth.PNG

 

Once you click "Refresh OAuth Token" your webbrowser should open. Follow the directions there and once done switch back to Sourcetree and hit OK. Then try pushing again and see if it works.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 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...

845 views 3 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you