最近更新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.
总而言之,言而总之,就是不能直接输入密码,得输入token,以此保护你的安全
1.登录https://github.com账号之后
2.找到setting
image.png
3.找到developer setting
image.png
4.personal access token
image.png
5.设置
image.png
6.点击生成
image.png
7.保存一下token不然刷新网页后就看不到了
image.png
image.png
8.再次输入账号和token就大功告成了
image.png
记得过期后再来玩一遍,你也可以设置一个不过期的