我使用用户名密码来推送我的代码。它工作了几个月,但突然我无法做到这一点并收到此错误:
Username for 'https://github.com': shreyas-jadhav
Password for 'https://[email protected]':
remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.
remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information.
请注意,该链接没有帮助。即使使用生成的令牌也无济于事。
主持人注:这是GitHub 计划中且即将实施的永久性服务变更的一部分
-
从 GitHub 生成新令牌开发者设置
-
更新远程 URL:
git remote set-url origin https://<token>@github.com/<Git_URL>
-
拉动一次:
git pull https://<token>@<Git_URL>.git
你就可以走了。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)