github 开启两步认证后 不能 git clone 和 git push

来源:互联网 发布:vb net从入门到精通 编辑:程序博客网 时间:2024/06/06 02:13

解决方法主要有两个 1

1. 改用ssh

ssh-keygen
然后把pub文件中的内入粘贴到github上

2.申请Access Token

在github上 生成access token 后 2,需要密码的地方粘贴token 就可以了


  1. https://help.github.com/articles/https-cloning-errors/#provide-access-token-if-2fa-enabled ↩
  2. https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/ ↩
原创粉丝点击