git密码身份验证的源树修复被暂时禁用作为掉电的一部分。请改用个人访问令牌
我在拉入 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 dev 设置生成新令牌
2 - 在 SourceTree 中,您只需要在那里更改存储库设置:
3 - 使用新格式更改 URL/路径:
https://<USERNAME>:<TOKEN>@<GIT_URL>.git
4 - 按确定,现在很好!
回答
在源树中 > 打开 repo 设置 > 远程选项卡 > 将远程“URL/路径”编辑为
https://{personal-access-token>@github.com}/{<my-repo>}.git>
然后保存并尝试推送
我确实喜欢@heratyian 的回答并且工作正常。
THE END
二维码