【发布时间】:2017-05-09 12:42:51
【问题描述】:
在过去的 2 个小时里,我一直在寻找解决 Git 问题的方法。首先,几个月前我实际上已经从一个 Git 网站克隆了一个 repo 到我的本地。一切运作良好(拉、推、创建公关等)。现在,我面临无法将源代码拉取/获取到我自己的本地仓库的问题(我使用 SourceTree 作为客户端)。我在 SourceTree 上收到这些错误:
remote: Password authentication is not available for Git operations.
remote: See https://git.xyz.com.au/settings/tokens or https://git.xyz.com.au/settings/ssh
fatal: unable to access 'https://git.xyz.com.au/rea-systems/rea-systems-data.git/':
The requested URL returned error: 403
我还尝试从另一个 Git 网站克隆一个新的 repo,但无济于事,并得到了完全相同的错误消息。
我怀疑可能是token的原因,所以我按照https://confluence.atlassian.com/sourcetreekb/two-factor-authentication-2fa-with-github-in-sourcetree-402033499.html的步骤操作。之后我就卡住了。
可能出了什么问题?我该如何解决这个问题?
注意:我没有更改 SourceTree 上的任何设置(此外,我注意到 SourceTree 一直提示输入用户名和密码,即使我输入了凭据)。
【问题讨论】:
-
对于 OP 来说可能为时已晚,但无论如何:请阅读错误消息。我的翻译是这样的。有人更改了服务器配置,你需要证书而不是密码才能在远程'git.xyz.com.au/rea-systems/rea-systems-data.git'上操作 git
标签: git github atlassian-sourcetree