Git 推送挂在 POST git-receive-pack 上
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30799527/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Git push hangs on POST git-receive-pack
提问by spankmaster79
I'm on a Windows 8 Machine with git version 1.9.5.msysgit.0 pushing to a TFS Git Repository hosted on HTTPS.
我在 Windows 8 机器上使用 git 版本 1.9.5.msysgit.0 推送到托管在 HTTPS 上的 TFS Git 存储库。
When I push any text file everything is fine. But pushing a certain .jpg file git hangs on POST git-recieve-pack with the following output:
当我推送任何文本文件时,一切都很好。但是推送某个 .jpg 文件 git 挂在 POST git-recieve-pack 上,输出如下:
$ git push -v
Pushing to https://tfs.ourcompanyn.com/tfs/DefaultCollection/Prototypes/_git/TestProject
Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 59.76 KiB | 0 bytes/s, done.
Total 5 (delta 3), reused 0 (delta 0)
POST git-receive-pack (61329 bytes)
It stays like this and does not change anymore
它保持这样并且不再改变
We use wincred as credentialhelper and I've checked that authentication works. Also I can push code. Just some of the .jpeg Files create this problem.
我们使用 wincred 作为 credentialhelper,我已经检查过身份验证是否有效。我也可以推送代码。只是一些 .jpeg 文件造成了这个问题。
Is CMYK / RGB a problem? Is https with git and tfs a problem?
CMYK/RGB 有问题吗?带有 git 和 tfs 的 https 有问题吗?
EDIT: I've tried so far to increase http.postbuffer as mentioned in this post.
编辑:我到目前为止已经试过增加http.postbuffer提到在这个岗位。
git config http.postBuffer 524288000
回答by spankmaster79
The problem occurs with msysgit and curl in the current version. There's a problem with handling authentication over HTTPS:
当前版本中的 msysgit 和 curl 会出现此问题。通过 HTTPS 处理身份验证存在问题:
Documented here: https://github.com/msysgit/git/issues/349
记录在这里:https: //github.com/msysgit/git/issues/349
Solution: Install the pre-release of Git for Windows 2.x
解决方案:安装Git for Windows 2.x的预发布版本
UPDATE:
更新:
Version 2.5.1 for Windows is released, so please use that one. https://git-scm.com/download/win
已发布适用于 Windows 的 2.5.1 版,因此请使用该版本。 https://git-scm.com/download/win