Git 推送挂在 POST git-receive-pack 上 [英] Git push hangs on POST git-receive-pack

查看:29
本文介绍了Git 推送挂在 POST git-receive-pack 上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 8 机器上使用 git 版本 1.9.5.msysgit.0 推送到托管在 HTTPS 上的 TFS Git 存储库.

I'm on a Windows 8 Machine with git version 1.9.5.msysgit.0 pushing to a TFS Git Repository hosted on HTTPS.

当我推送任何文本文件时,一切都很好.但是推送某个 .jpg 文件 git 挂在 POST git-recieve-pack 上,输出如下:

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:

$ 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

我们使用 wincred 作为 credentialhelper,我已经检查过身份验证是否有效.我也可以推送代码.只是一些 .jpeg 文件造成了这个问题.

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.

CMYK/RGB 有问题吗?https 和 git 和 tfs 有问题吗?

Is CMYK / RGB a problem? Is https with git and tfs a problem?

到目前为止,我已经尝试增加 http.postbuffer,如在这篇文章中提到的.

I've tried so far to increase http.postbuffer as mentioned in this post.

git config http.postBuffer 524288000

推荐答案

当前版本的 msysgit 和 curl 出现问题.通过 HTTPS 处理身份验证存在问题:

The problem occurs with msysgit and curl in the current version. There's a problem with handling authentication over HTTPS:

此处记录:https://github.com/msysgit/git/issues/349

解决办法:安装 Git for Windows 2.x

更新:

Windows 2.5.1 版本已发布,请使用该版本.https://git-scm.com/download/win

Version 2.5.1 for Windows is released, so please use that one. https://git-scm.com/download/win

这篇关于Git 推送挂在 POST git-receive-pack 上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆