github - git 密码身份验证的源代码树修复作为断电的一部分被暂时禁用。请改用个人访问令牌
问题描述
仅供参考,这是专门针对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 dev 设置生成新令牌
2 - 在 SourceTree 中,您只需在此处更改存储库设置:
3 - 使用新格式更改 URL/路径:
https://<USERNAME>:<TOKEN>@<GIT_URL>.git
4 - 按 OK,现在很好!
推荐阅读
- php - 我应该将哪些标头添加到 CURL 请求以访问 WSDL
- flutter - 无法使用颤振创建创建颤振应用
- r - 为什么 R 会引入 NA?没有逗号,只有简单的数字,比如 4438
- postgresql - 有什么办法可以克服 tsvector 和 tsquery 在 postgres 全文搜索中的限制
- robotframework - 在 Robotframework 中未动态设置变量
- javascript - 如何在javascript中计算数组中的每个元素数
- windows - 如何使用 AutoHotkey 激活后台进程?
- python - Python:Django:如何使用 python 脚本运行 django 应用程序
- amazon-web-services - AWS 密钥对替换
- html - 使用 css 更改部分 SVG 颜色