仅供参考,这是专门针对 sourcetree 的
我在拉入 sourcetree 时遇到此错误,昨天工作得很好,但突然出现此错误。
git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks fetch origin
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.
fatal: unable to access 'https://github.com/London-Foster/frontend.git/': The requested URL returned error: 403
我尝试拥有个人访问令牌并在源代码树上使用它,但仍然无法登录。
1 - 从 git 生成新令牌开发设置 https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
2 - 在 SourceTree 中,您只需更改存储库设置:
3 - 使用新格式更改 URL/路径:
https://<USERNAME>:<TOKEN>@<GIT_URL>.git
4 - 按“确定”,现在就可以了!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)