今天(8月13日)开始github库在vscode中提交失败了,咋办?
-
vscode提交代码到远程 github 库,一直顺利。今天提示不行了,说安全升级了。大家有没有遇到的,简单解决办法是什么?谢谢!
-
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access '*****': The requested URL returned error: 403你之前使用HTTPS方式clone的吧,改用SSH方式吧。
-
GitHub官方博客说了 8月13日,GitHub 禁止
HTTPS
方式通过账号密码push
代码了。
你要去个人设置页面,创建一个personal access token
,push
的时候把之前输入的密码换成token
。$ git clone https://github.com/username/repo.git Username: your_username Password: your_token (换成token)
或者建议直接使用
SSH
,更安全方便。