Git Clone from GitHub over https with two-factor authentication

后端 未结 6 1761
感动是毒
感动是毒 2021-01-29 23:49

I recently began using two-factor authentication on GitHub, and I am now unable to use git over https on private repos in the usual way:

peter@computer:~$ git cl         


        
6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-30 00:15

    Find out how to fix this here:

    https://github.com/blog/1614-two-factor-authentication#how-does-it-work-for-command-line-git

    How does it work for command-line Git?

    If you are using SSH for Git authentication, rest easy: you don't need to do anything. If you are using HTTPS Git, instead of entering your password, enter a personal access token. These can be created by going to your personal access tokens page.

提交回复
热议问题