无法推送到 git 存储库。它在“写入对象:100%”之后挂起。

发布于 2024-09-06 04:33:22 字数 421 浏览 5 评论 0原文

我正在使用以下命令运行 git 守护进程。

c:\cygwin\bin\git daemon --reuseaddr --base-path=/cygdrive/S --export-all --verbose --enable=receive-pack

我能够克隆并拉取更新,但是当我尝试推送时

$ git push origin master

Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6)

,它会挂起

我当前正在使用 git 版本 1.7.0.4

I am running git daemon with the following command.

c:\cygwin\bin\git daemon --reuseaddr --base-path=/cygdrive/S --export-all --verbose --enable=receive-pack

I am able to clone and pull updates but when I try to push I get

$ git push origin master

Counting objects: 6, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6)

, then it hangs

I am currently using git version 1.7.0.4

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

猫性小仙女 2024-09-13 04:33:22

我对 cygwin git 也有同样(类似?)的问题。在 cygwin 更新后,它在 Linux 和 cygwin 上都停止与远程 git 存储库正常工作。

起初它看起来是随机的,很难识别。有些命令有效,有些失败。看起来它与正在传输的数据大小有关。

我相信这是 cygwin 中 SSH 的客户端问题,因为其他 git 客户端可以正常连接。对我来说,解决方案是安装 msysgit 并选择安装它自己的 SSH 客户端,而不是 cygwin 的。我想 Putty 应该也能工作。

I had the same (similar?) problem with cygwin git. After one cygwin's update it stopped working properly with remote git repos, both on linux and cygwin.

At first it looked random and was hard to identify. Some commands worked, some failed. It looks like it was connected to the size of data being transferred.

I believe it's a client-side problem with SSH in cygwin as other git clients can connect normally. For me solution was to install msysgit and choose at install its own SSH client, not cygwin's. Putty should work as well, I guess.

一瞬间的火花 2024-09-13 04:33:22

我有同样的问题(Ubunut作为git服务器1.7.0.4,Windows Msysgit是git客户端1.7.0.2)。
如果我使用 ubuntu git 客户端就可以了。

我将客户端更新到1.7.1.0,它不能帮助

我使用git-daemon来管理repo(启用接收服务器),这是一个问题。 (msysgit 和 gitdaemon)

当我切换到 gitolite 时,问题就消失了。

建议使用 git-daemon 只读

I have the same problem (Ubunut as git server 1.7.0.4, Windows Msysgit is git client 1.7.0.2).
While it is ok if I use ubuntu git client.

I updated the client to 1.7.1.0, it doesn't help

I use git-daemon to manage the repo (enable receive-back server), and it is a problem. (msysgit with gitdaemon)

When I switch to gitolite, the problem disappear.

Suggest to use git-daemon for read-only

喜爱皱眉﹌ 2024-09-13 04:33:22

我在服务器 Ubuntu git daemon 1.7.3.2 和客户端 Windows Msysgit 1.7.4 上遇到了同样的问题。将Msysgit降级到1.6.5.1,问题解决。

I had this same problem with server Ubuntu git daemon 1.7.3.2 and client Windows Msysgit 1.7.4. Downgraded Msysgit to 1.6.5.1 and the problem was resolved.

§对你不离不弃 2024-09-13 04:33:22

还浪费了一整天的时间来完成这项工作。
只是坚持更新100%
最后是 mysgit 1.6.5.1 使它工作。另外,如果这不起作用,请尝试在远程 Linux 中使用该命令
git config --bool core.bare true
当在你的 repo 文件夹中时

Also wasted whole day trying to get this work.
Just stucked with updating 100%
At the end it was the mysgit 1.6.5.1 what made it work. Also if that does not work try in remote linux the command
git config --bool core.bare true
when inside your repo folder

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文