Github Enterprise-远程:密码验证不适用于Git操作 [英] Github enterprise - remote: Password authentication is not available for Git operations
问题描述
我的git运行正常,然后没有进行任何更改,就开始出现以下问题, 我尝试过重置
My git was working fine, then without changing anything than the following problem started to happen, I have tried resetting the cache in
credentials.helper
credentials.helper
几乎遍历了我能找到的每个stackoverflow答案
and have gone through pretty much every stackoverflow answer I could find
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
谢谢
推荐答案
如果您已为GitHib企业帐户注册了公共ssh密钥,则可以使用ssh url来避免该问题.
If you have registered a public ssh key to your GitHib enterprise account, you could side-step the issue using an ssh url
cd /path/to/repo
git remote set-url origin git@github.ibm.com:WBurney/Blockchain_SDO.git
git push
但是关于您的原始问题,请尝试并遵循"为命令行创建个人访问令牌".
But regarding your original issue, try and follow "Creating a personal access token for the command line".
如果您使用的是Mac,请从OSX钥匙串.
If you are on Mac, update your credentials from the OSX Keychain.
您可能需要先删除旧的缓存凭据.
(如已评论通过 RayLoveless )
You might need to remove an old cached credential first.
(As commented by RayLoveless)
这篇关于Github Enterprise-远程:密码验证不适用于Git操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!