主页

git pull 报错说:remote: Support for password authentication was removed on August 13, 2021.

2025-01-24 08:25PM

git pull 报错说:

$ git pull
Username for 'https://github.com': xxxx
Password for 'https://xxxx@github.com':
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/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/xxxx/xxxx.git/'

解决方法:

先设置一个“个人访问令牌”,可以根据看这篇文章:https://meiyi.site/articles/910

如果使用Personal Access Token (PAT)拉取代码还是报错的话,原因可能是因为你没有粘贴完整这个,或者没有复制成功,可以现在文本编辑器里面粘贴一下,看看是否是粘错了

如果没有粘错,再重新拉取代码,应该就可以了

返回>>

登录

请登录后再发表评论。

评论列表:

目前还没有人发表评论