beardofedu / tipsntricks

Git Tips and Tricks Repo
5 stars 2 forks source link

Authenticating with git bash when using 2FA #3

Open qyost opened 6 years ago

qyost commented 6 years ago

User must create a personal access token in their account -> settings -> developer settings -> personal access token.

Then when prompted for their password by git bash, the user enters the PAT in place of their password. Also helpful to have credential caching set in git config.