首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Github enterprise - remote:密码身份验证不适用于Git操作

Github enterprise - remote:密码身份验证不适用于Git操作
EN

Stack Overflow用户
提问于 2017-08-27 16:31:55
回答 9查看 119.9K关注 0票数 46

我的git工作得很好,然后在没有改变任何东西的情况下,以下问题开始发生,我尝试在

credentials.helper

几乎检查了我能找到的每一个堆栈溢出的答案

代码语言:javascript
运行
复制
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

谢谢

EN

回答 9

Stack Overflow用户

回答已采纳

发布于 2017-08-27 21:01:42

如果您已向GitHub企业帐户注册了公共ssh密钥,则可以使用ssh url来回避此问题。

代码语言:javascript
运行
复制
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

(作为RayLovelesscommented )

票数 51
EN

Stack Overflow用户

发布于 2019-07-08 19:15:40

另一个对我有效的解决方案是通过Windows凭据管理器更改凭据

1)清除缓存的凭证(感谢@Rayloveless)。

2)按照this link中的步骤创建访问令牌。

  • 在任何页面的右上角,单击您的个人资料照片。
  • 单击左侧边栏中的
  • ,然后单击Developer

access tokens

  • Generate new Token

<>F215>

3)进入"Windows凭据管理器“,查找您的Github企业帐户。

4)点击[修改],将密码替换为您生成的令牌。

票数 39
EN

Stack Overflow用户

发布于 2019-05-07 18:07:34

试试下面的一个-

代码语言:javascript
运行
复制
git clone https://<user-name>:<git-token>@<github-path.git>
票数 13
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45903106

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档