我已经使用了很长一段时间的 tortoise git,今天我无法使用 tortoise git 并出现以下错误。
git.exe pull --progress -v --no-rebase "origin" 远程:支持 密码验证已于 2021 年 8 月 13 日删除。请使用 相反,个人访问令牌。远程:请参阅 https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ 了解更多信息。
我了解 git 的最新变化。但我想用乌龟git。有人请帮我解决这个问题。
Github 已于 2021 年 8 月 13 日取消对密码验证的支持,并给出以下回复:
Support for password authentication was removed on August 13, 2021
要解决此问题,请按照以下步骤操作:
使用生成的令牌代替密码与 GitHub 进行通信。
使用以下步骤可以避免此问题。
在 https://github.com/settings/tokens,去生成一个令牌。
同时
git clone, push, pull
使用以下凭据。
用户名:user_github_用户名
password:add_ generated_token 而不是密码。
仅使用令牌而不是密码对我来说不起作用。这是我所做的所有步骤:
完成以上3个步骤后,我就可以成功无密码访问git了。
只需按照简单的三个步骤即可将您的存储库推送到 git 中...
在此之前,您可以先运行以下命令
git init
git status
git add .
git branch -M main
git remote set-url origin [email protected]:<username>/<repository_name>.git
git commit -am "your comments"
git push --set-upstream origin main