You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I found this article:
I am searching for exactly the same, unfortunately this solution works only on source tree 2.4 and earlier. My version is the latest: 2.7.
Anyone an idea where to fill in the token so I can use 2FA for my remote server?
Hey @jacfab,
You can use OAuth to sign in while adding your Github account in Sourcetree. You can add the account in Preferences window - Accounts tab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Manju, I've setup OAuth in Sourcetree v2.4.8.0 in Windows without issues, but when trying to push to any repo it open a login popup from github. After writing my credencials it fails the push.
When doind push:
Push fail:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello! When you get that login dialog, are you filling in your username and password? And does that dialog then prompt for a 2FA approval?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mike Corsaro, I fill it with my username and password, tried with email too. No, it does not prompt for 2FA approval. It just try to push and fail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you try going to "Tools > Options > Authentication", remove all of the accounts, and then try pushing again?
If that doesn't work, could you try installing the newest version of Git from https://git-scm.com/, restart Sourcetree, and then go to "Tools > Options > Git" and select "Use System Git", and then try again? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would also like to chime in on this.
I have the latest GIT installed and SourceTree is using my system GIT. I've also deleted and re-authenticated myself with Github. I have the same issues at the OP.
I've attempted to use OAuth, which gives me the same problems as the OP. If I used the Basic Authentication, I get, "Authentication Failed. Failed to check login for user <user>. Must specify two-factor authentication OTP code."
Edit:
It seems as if my git version wasn't updated or placed where it was supposed to be. I apologize. I updated my GIT version from 2.14 to 2.16.2 (Windows) and it now asks for 2-step authentication and correctly works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.