我的git工作得很好,然后在没有改变任何东西的情况下,以下问题开始发生,我尝试在
credentials.helper
几乎检查了我能找到的每一个堆栈溢出的答案
remote: Password authentication is not available for Git operations.
remote: You must use a personal access token or SSH key.
remote: See https://github.ibm.com/settings/tokens or
'https://github.ibm.com/WBurney/Blockchain_SDO.git/':
The requested URL returned error: 403
谢谢
发布于 2017-08-27 21:01:42
如果您已向GitHub企业帐户注册了公共ssh密钥,则可以使用ssh url来回避此问题。
cd /path/to/repo
git remote set-url origin git@github.ibm.com:WBurney/Blockchain_SDO.git
然后,任何像git push
/git fetch
/git pull
/git ls-remote
这样的命令都将使用由git remote set-url
设置的SSH URL。
但是关于你最初的问题,试着遵循"Creating a personal access token for the command line“。
如果您使用的是Mac,则使用update your credentials from the OSX Keychain。
您可能需要remove an old cached credential first。
(作为RayLoveless的commented )
发布于 2019-07-08 19:15:40
另一个对我有效的解决方案是通过Windows凭据管理器更改凭据
1)清除缓存的凭证(感谢@Rayloveless)。
2)按照this link中的步骤创建访问令牌。
access tokens
<>F215>
3)进入"Windows凭据管理器“,查找您的Github企业帐户。
4)点击[修改],将密码替换为您生成的令牌。
发布于 2019-05-07 18:07:34
试试下面的一个-
git clone https://<user-name>:<git-token>@<github-path.git>
https://stackoverflow.com/questions/45903106
复制相似问题