Git Clone from GitHub over https with two-factor authentication

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

    If your repo have 2FA enabled. Highly suggest to use the app provided by github.com Here is the link: https://desktop.github.com/

    After you downloaded it and installed it. Follow the withard, the app will ask you to provide the one time password for login. Once you filled in the one time password, you could see your repo/projects now.

提交回复
热议问题