Sourcetree push to Github with 2FA

Hi,

I’ve done the Get Git Smart Course and have since added 2FA to my Github account.

Now though, I get an authentication error when trying to push from Sourcetree. I was using it loads before i set up 2FA on Github so imagine I just need to tweak something somewhere, but I’m not sure what. I’ve done a search online and tried some suggestions, even going so far as removing the connection in Sourcetree but I still get the same errors.

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags github master:master
remote: Invalid username or password.

Any ideas / help would be most appreciated.

Thanks

It’s ok. I think I’ve sorted it by creating an AccessToken.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms