我的 git 工作正常,然后除了以下问题开始发生之外没有任何改变, 我试过在
中重置缓存credentials.helper
并且几乎遍历了我能找到的每一个 stackoverflow 答案
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
谢谢
最佳答案
如果您已经为您的 GitHub 企业帐户注册了公共(public) ssh key ,您可以使用 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 .
(作为 commented 通过 RayLoveless )
关于Github 企业 - 远程 : Password authentication is not available for Git operations,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45903106/