【问题标题】:msysgit is giving errors in Windows 7 32bit computermsysgit 在 Windows 7 32 位计算机中出现错误
【发布时间】:2012-02-14 00:59:54
【问题描述】:

我正在尝试从 git 服务器克隆代码。我正在使用 Windows 7、32 位计算机。我安装了msysgitTortoiseGit

但是每当我尝试克隆命令时,我都会收到以下错误:

git.exe clone   --progress -v  "http://vcs.hiit.fi/git/hiit_wfa" "C:\Users\athukora\Desktop\HIIT wide focus area\hiit_wfa"

Cloning into 'C:\Users\athukora\Desktop\HIIT wide focus area\hiit_wfa'...
error: The requested URL returned error: 401 (curl_result = 22, http_code = 401, sha1 = 9b1b551b5e4b7c7666df38c129d1ecc480c77347)
error: Unable to find 9b1b551b5e4b7c7666df38c129d1ecc480c77347 under http://vcs.hiit.fi/git/hiit_wfa
Cannot obtain needed object 9b1b551b5e4b7c7666df38c129d1ecc480c77347
while processing commit 876cb1098d91238e87c239b8151eeba5330f4480.
error: Fetch failed.

有人可以帮我找出这个问题的原因吗?

【问题讨论】:

    标签: git msysgit tortoisegit


    【解决方案1】:

    您正在通过 HTTP 协议克隆存储库,并且服务器需要身份验证(401 错误是“需要身份验证”。

    如果您有存储库的凭据,您需要在 URL 中提供用户名:

    git.exe clone   --progress -v  "http://usernname@vcs.hiit.fi/git/hiit_wfa" "<path>"
    

    Git 会提示你输入密码。

    See this post 了解提供您的凭据的其他方式。

    【讨论】:

    【解决方案2】:

    如果以后有人遇到同样的问题,请参考这个http://kumaripaba.blogspot.com/2012/01/how-to-use-git-in-windows.html

    我详细描述了我遇到的问题和解决方案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-02-20
      • 2015-09-29
      • 2015-01-16
      • 1970-01-01
      • 2018-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多