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

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

问题描述



当我将任何版本的git版本推送到TFS Git存储库时,文本文件一切都很好。但推动某个.jpg文件git会挂在POST git-recieve-pack上,输出如下:

  $ git push -v 
推送到https://tfs.ourcompanyn.com/tfs/DefaultCollection/Prototypes/_git/TestProject
计数对象:11,完成。
使用多达4个线程的增量压缩。
压缩对象:100%(5/5),完成。
写作对象:100%(5/5),59.76 KiB | 0字节/秒,完成。
总计5(delta 3),重用0(delta 0)
POST git-receive-pack(61329字节)

它保持这样并且不会再改变

我们使用wincred作为凭证帮助程序,并且我已检查认证是否有效。我也可以推码。只是一些.jpeg文件造成了这个问题。

CMYK / RGB是一个问题吗? https与git和tfs是一个问题吗?

编辑:
我已经尝试增加http.postbuffer,如前所述在这篇文章

  git config http.postBuffer 524288000 


解决方案

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



这里记录:
https://github.com/msysgit/git/issues/349



解决方案:
安装预发布 Git for Windows 2.x



更新:

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


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

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

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.

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

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

git config http.postBuffer 524288000

解决方案

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

Documented here: https://github.com/msysgit/git/issues/349

Solution: Install the pre-release of 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

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

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