github提交代码Support for password authentication was removed

提交本地文件到github 想用账户名和密码的方式好像不支持了,提示Support for password authentication was removed 

查看官方的解释:https://github.blog/changelog/2021-08-12-git-password-authentication-is-shutting-down/

As previously announced, starting on August 13, 2021, at 09:00 PST, we will no longer accept account passwords when authenticating Git operations on GitHub.com. Instead, token-based authentication (for example, personal access, OAuth, SSH Key, or GitHub App installation token) will be required for all authenticated Git operations.

Please refer to this blog post for instructions on what you need to do to continue using git operations securely.

Removal
August 13, 2021, at 09:00 PST



解决方法

我这里是去生成personal access token

在github的 Setting部分:

 

 

 

 

 

 

生成后自己复制保存下来,后面提交文件就用它了。

 




posted @ 2022-03-11 13:56  hanzhang  阅读(212)  评论(0编辑  收藏  举报