作为限电的一部分,密码身份验证被暂时禁用。请改用个人访问令牌[重复]

2023-11-23

我使用用户名密码来推送我的代码。它工作了几个月,但突然我无法做到这一点并收到此错误:

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 计划中且即将实施的永久性服务变更的一部分


  1. 从 GitHub 生成新令牌开发者设置

  2. 更新远程 URL:

    git remote set-url origin https://<token>@github.com/<Git_URL>
    
  3. 拉动一次:

    git pull https://<token>@<Git_URL>.git
    

你就可以走了。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

作为限电的一部分,密码身份验证被暂时禁用。请改用个人访问令牌[重复] 的相关文章

随机推荐