为什么“git push”只需使用MySysGit 1.7.4无限期地挂在那里? [英] Why does a "git push" just hang there indefinitely using MySysGit 1.7.4?
问题描述
我尝试了使用Ruby和Rails进行的小型实验,并希望将其从Mac推送到PC并反过来。
因此,我安装了Git的网站标准推荐使用PC上的Git(MySysGit 1.7.4),并运行
git daemon --reuseaddr --base-path =。 - 在Mac或PC上--export-all --verbose --enable =接收包
(启动一个Git服务器),然后在PC上克隆并添加一个文件,然后执行一个
$ c> git push git://192.168.1.31/ master现在它会打印出以下内容并只是无限期地挂在那里:
计数对象:5,完成。
使用多达8个线程的增量压缩。
压缩对象:100%(3/3),完成。
写对象:100%(4/4)
我在另一台PC上试了一下,这是一回事。如何解决这个问题?
(我正在使用该命令从问题运行服务器:'receive-pack':服务未启用'./.git')
他们刚刚发布了一个允许配置选项停止git挂起的版本。
修正了 https://github.com/msysgit/ git / issues / 101 在 https://github.com/msysgit /msysgit/releases/tag/Git-1.9.4-preview20140611
您可以通过设置
git config --global sendpack.sideband false
I tried small experiments with Ruby and Rails, and would like to push and pull from the Mac to PC and vice verse.
So I installed what the Git's website's standard recommended Git on PC (MySysGit 1.7.4), and run
git daemon --reuseaddr --base-path=. --export-all --verbose --enable=receive-pack
either on the Mac or PC (to start a Git server), and then, on the PC, I cloned and add a file, and commit, and then do a
git push git://192.168.1.31/ master
now it will print out the following and just hang there indefinitely:
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4)
I tried it on another PC, and it is the same thing. How can this be fixed?
(I am using the command to run the server from question: 'receive-pack': service not enabled for './.git')
They have just released a version that allows a config option to stop git hanging.
Fix is for https://github.com/msysgit/git/issues/101 in release https://github.com/msysgit/msysgit/releases/tag/Git-1.9.4-preview20140611
You can fix it by setting
git config --global sendpack.sideband false
这篇关于为什么“git push”只需使用MySysGit 1.7.4无限期地挂在那里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!