Github 企业 - 远程 : Password authentication is not available for Git operations

标签 git github github-enterprise

我的 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/

相关文章:

git - 为什么我不能删除远程 GitLab 存储库中的分支?

git - git commit --amend在终端中打开Vim

GitHub 页面生成器删除 <video> 标签

git - 关于失败的 GitHub WebHooks 的通知?

git:恢复文件夹和不同名称下的所有子文件夹/文件

git - git remote update 和 fetch 之间的区别?

git - 区分当前文件版本和前一个远程存储库

ruby-on-rails - 运行从 GitHub 下载的 Rails 应用程序 (database.yml)

image - Github 页面 jekyll 图像未加载