- 此问题在此处已有答案**:
Message "Support for password authentication was removed. Please use a personal access token instead."(47个答案)
3天前关闭。
这篇文章是编辑和提交审查2天前。
在github上添加标记后,尝试将代码推送到github时遇到错误
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/username/student-API.git/'
我使用了git push,然后得到了错误
1条答案
按热度按时间erhoui1w1#
正如错误消息中直接链接的页面所述,当
git
要求输入密码时(或当您使用凭据管理器缓存密码时),您需要使用Personal Access Token而不是Github密码(您通常使用该密码登录Github)。因此,要使其正常工作,您需要转到设置〉开发人员设置〉个人访问令牌,创建细粒度令牌或经典令牌,然后使用该令牌代替密码。