Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use GitHub's 2-Factor Authentication with TortoiseGit?

We like TortoiseGit, and want to take advantage of GitHub's 2-Factor Authentication...but the two don't seem to want to work together.

like image 253
Return_Of_The_Archons Avatar asked Feb 19 '14 20:02

Return_Of_The_Archons


People also ask

How do I use Git 2 factor authentication?

In the upper-right corner of any page, click your profile photo, then click Settings. In the "Access" section of the sidebar, click Password and authentication. Under "Two-factor authentication", click Enable two-factor authentication. Under "Two-factor authentication", select Set up using SMS and click Continue.

Is GitHub two factor authentication?

You can set up your account on GitHub.com to require an authentication code in addition to your password when you sign in.


1 Answers

To compliment Cupcake's answer, use the Personal Access token feature within GitHub.com while using TortoiseGit:

  1. Set up 2-step auth.

  2. Set up a personal access token - taking note of the generated token (use the Copy to clipboard button next to the generated token).

  3. Set TortoiseGit to remember your password as detailed here.

  4. Now perform a pull operation on GitHub.com, enter your username, but instead of using your normal password, use the token that was generated in step #2.

  5. Perform another pull operation on GitHub.com to ensure the token is remembered.

like image 78
Roadkillnz Avatar answered Sep 25 '22 22:09

Roadkillnz