一、问题现象
git push到Github平台报错
Remote: Support for password authentication was removed on August 13, 2021.
二、解决方案
1、Github官网操作步骤
生成Token操作步骤:settings -> Developer settings -> Personal access tokens -> Generate new token -> Generate token
具体图示可参考:https://www.cnblogs.com/leon-2016/p/9284837.html
2、操作系统操作步骤
一、MacOS操作步骤
①、应用程序搜索:Keychain access;
②、打开"钥匙串访问",搜索"github",删除相关密钥(也可以点击编辑,直接在"钥匙串访问"中用新生成的Token替换password);
二、Windows操作步骤
①、控制面板 -> User Accounts -> Credential Manager
②、搜索github,直接删除(也可以点击编辑,直接在"钥匙串访问"中用新生成的Token替换password);
3、IDEA操作步骤
①、IDEA的Terminal终端git push时填入以下信息
git push -v
git pull -v
username: Github的用户名
password: add_generated_token instead of password.
例如ghp_dmiES4QoJR9WTNtat7X16PeAmt0Vaa1GdbUF