Github Enterprise-远程:密码身份验证不适用于Git操作

穆罕默德·拉法汗(Muhammad Raafay Khan):

我的git工作正常,然后没有发生任何变化,直到出现以下问题,我尝试将缓存重置为

certificate.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

谢谢

VonC:

如果您已向GitHib企业帐户注册了公共ssh密钥,则可以使用ssh url避开该问题

cd /path/to/repo
git remote set-url origin [email protected]:WBurney/Blockchain_SDO.git
git push

但是,关于您的原始问题,请尝试并遵循“ 为命令行创建个人访问令牌 ”。

如果您使用的是Mac,请从OSX钥匙串更新您的凭据

您可能需要先删除旧的缓存凭据
(作为评论RayLoveless

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章