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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

234 views 0 3
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot