Git Clone from GitHub over https with two-factor authentication

后端 未结 6 1745
感动是毒
感动是毒 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:23

    As per @Nitsew's answer, Create your personal access token and use your token as your username and enter with blank password.

    Later you won't need any credentials to access all your private repo(s).

提交回复
热议问题