To compliment Cupcake's answer, use the Personal Access token feature within GitHub.com while using TortoiseGit:
Set up 2-step auth.
Set up a personal access token - taking note of the generated token (use the Copy to clipboard button next to the generated token).
Set TortoiseGit to remember your password as detailed here.
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.
Perform another pull operation on GitHub.com to ensure the token is remembered.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…