无法推送到Windows上的git裸存储库

Pri*_*tel 5 git msysgit git-push

我在Windows上玩GIT.已安装的msysgit(最新版本)似乎一切都很好看.我在我的c:/ repo文件夹上创建了裸存储库,我将其克隆到c:/ repoclone /并使用以下命令:

git clone git://localhost/repo
Run Code Online (Sandbox Code Playgroud)

要启用git协议,我使用以下命令运行另一个git-bash窗口.

git daemon --export-all --enable=receive-pack
Run Code Online (Sandbox Code Playgroud)

克隆它正确.基本上我想要c:/ repoclone/repo将是我的工作目录和更改我想在c:/ repo的裸存储库中推送.拉动似乎对我来说很好,但每当试图推送数据时,似乎保持处理没有任何错误.

一旦手动破坏守护进程命令,我得到了以下错误.

fatal: sha1 file '<stdout>' write error: Invalid argument
fatal: read error: Invalid argument
error: failed to push some refs to 'git://localhost/repo'
Run Code Online (Sandbox Code Playgroud)

任何的想法.

Pri*_*tel 3

我始终无法找到上述问题的解决方案,并发现很多人都有同样的问题,但没有正确的解决方案。我放弃了 GIT 协议的想法,而是开始通过 HTTP 使用 git。 http://gitblit.com是通过 HTTP 工作的非常好的解决方案。

希望这有帮助。