“git 克隆” Windows 上的 msysGit 无法正常工作
我已经在几台计算机上安装了 msysGit,并且仅在一台特定计算机(当然是我的主要工作计算机)上出现问题。 “git 克隆”不起作用。当我在存储库上运行克隆命令时,会发生这种情况:
C:\Projects>git clone git://github.com/[user]/[project].git
Initialized empty Git repository in C:/Projects/[project]/.git/
它开始填充 .git 目录,但从不拉取其他任何内容。我已经让它运行了几个小时,看看它是否至少会抛出一个错误。它继续坐在那里。如果我尝试取消它,效果就很好。它似乎永远不会拉下存储库。我已经在多个地方的多个存储库上尝试过此操作。有人知道可能发生什么吗?
I have installed msysGit on several of my computers and only have problems on one particular computer (my main work computer of course). 'git clone' does not work. When I run the clone command on a repository, this occurs:
C:\Projects>git clone git://github.com/[user]/[project].git
Initialized empty Git repository in C:/Projects/[project]/.git/
It starts populating the .git directory, but never pulls down anything else. I've left it going for a couple of hours to see if it would at least throw an error. It continues to sit there. If I try and cancel it, it works just fine. It just never seems to pull the repository down. I've tried this on multiple repositories from multiple places. Does anyone have a clue what may be happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试使用 http 地址进行克隆?
当前是 msysgit 的票证(问题 136),其中同样的问题,当前的解决方法是使用 http 而不是 git 地址进行克隆。
其他可尝试的操作:
GIT_TRACE=1
(并发布输出)这里切换到旧版本的 msysgit 可能是正确的选择:
请参阅此 GitHub 支持线程:
该问题实际上可能会影响任何 Git1.6.4 及更早版本:
请参阅此帖子。
GitHub 支持团队目前正在调查该问题:
Git1.6.4.4 确实包含修复 自 9 月 16 日起:
但自最初的 1.6.4 后期以来,mssysgit 尚未发布(9 月 21 日)任何新版本七月。 (他们可能正在等待 1.6.5 或 1.7)
Did you try to clone with the http address?
The is currently a ticket with msysgit (issue 136) with the same problem, for which the current workaround is to clone with the http rather than the git address.
Other moves to try:
GIT_TRACE=1
(and post the output)Here switching to an older version of msysgit could be the right option:
See this GitHub support thread:
The problem might actually affect any Git1.6.4 and older:
See this thread.
The GitHub support teams is currently investigating the problem:
Git1.6.4.4 does contain a fix since September, 16th:
But mssysgit has yet to release (September 21th) any new build since the original 1.6.4 late July. (They are probably waiting for 1.6.5 or 1.7)
我遇到了这个问题,结果发现这是接受远程主机密钥的步骤被阻止。我只是正常 ssh 到主机,接受密钥,然后返回 git,一切正常。
I had this problem, and it turned out that it was the step accepting the remote host key that was blocking. I just ssh'd normally to the host, accepted the key, and then went back to git and everything was working.