2FA give problems when pushing to GitHub

前端 未结 5 1652
傲寒
傲寒 2020-12-15 06:10

I\'ve clone a project on GitHub on my Raspberry Pi, create a new branch and push everything to the repository. For this I needed next commands:

git clone htt         


        
5条回答
  •  被撕碎了的回忆
    2020-12-15 06:29

    with 2FA you have to create a personal access token to use as a password when authenticating to GitHub on the command line with HTTPS URLs: https://help.github.com/articles/which-remote-url-should-i-use/#when-2fa-is-enabled

    or you can clone with ssh https://help.github.com/articles/which-remote-url-should-i-use/#cloning-with-ssh-urls (may also be useful: https://help.github.com/articles/generating-an-ssh-key/)

提交回复
热议问题