Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 326
Pritesh Patel Avatar asked Nov 05 '22 04:11

Pritesh Patel


1 Answers

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.

like image 113
Pritesh Patel Avatar answered Nov 07 '22 21:11

Pritesh Patel