【问题标题】:SourceTree GIT: Unable to pull, push, clone repo with error "Password authentication is not available for Git operations"SourceTree GIT:无法提取、推送、克隆存储库,并出现错误“密码身份验证不适用于 Git 操作”
【发布时间】: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


【解决方案1】:

这看起来像是 https url 凭据问题。
这可能是git credential (wrong) credentials caching 的结果。

首先,为了测试,尝试将您的 url 切换为 ssh ,看看问题是否仍然存在:这将避开 https 凭据以及可能的 2fa 方案。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-03-12
    • 2014-05-06
    • 2012-03-30
    • 2011-10-02
    • 2014-10-19
    • 2017-02-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多