简体   繁体   中英

Can't push to git bare repository on windows

I am playing with GIT on windows. Installed msysgit (latest version) and seems everything look good. I have created bare repository on my c:/repo folder which I had clone to c:/repoclone/ with following command:

git clone git://localhost/repo

To enable git protocol I run another git-bash window with following command.

git daemon --export-all --enable=receive-pack

Cloned it correctly. Basically I want c:/repoclone/repo will be my working directory and changes I want to push at my bare repository at c:/repo. Pulling seems work fine for me but whenever trying to push data it seems keep processing without any kind of error.

Once manually break daemon command I got following error.

fatal: sha1 file '<stdout>' write error: Invalid argument
fatal: read error: Invalid argument
error: failed to push some refs to 'git://localhost/repo'

Any idea.

I am never able to find solution of above question and found that many people has same kind of issue but no proper solution. I drop idea for GIT protocol instead start using git over HTTP. http://gitblit.com is really nice solution for work over HTTP.

Hope this help.

I had sam issue on TortoiseGIT every time when I was trying push to repository.
Finally I used --force option which solved my problem

I've seen this when there is no space left on the host of the bare repository. Free up some space then try again.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM