Github Support for password authentication was removed

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.

遇见删除Github对密码身份验证的支持报错后,解决方案如下

1.前往https://github.com/settings/tokens
2.点击Generate new token - Generate new token
3.在页面中Expiration*选择No Expiration,其他地方选项按需选择-点击Generate token
4.复制该秘钥

QQ_1724310188505.png

5.回到终端,继续之前造成该报错的操作,如git clone xxx,会出现下面内容,按注释填写

//github 用户名
Username for 'https://github.com':
//不要输入github的密码,而是直接粘贴刚才第4步的秘钥
Password for 'https://liunianhuaguoyanxi@github.com':
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容