Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push failed - unpack-objects abnormal exit

I'm using remote git repository. I successfully commit my files and now I'm trying to push it up to stream.

Operation fails with this messasge:

git.exe push --progress  "origin" master:master  error: unpack failed: unpack-objects abnormal exit error: RPC failed; result=18, HTTP code = 200 

I use TortoiseGit client on Windows 7.

Why am I getting this message? how to recover from this state?

like image 797
vlcik Avatar asked Dec 09 '11 08:12

vlcik


2 Answers

If your git repo is self hosted, check the file system rights on the remote git directory. If this gets corrupted, it is possible that your git server just doesn't have rights.

For instance, I host my own gitosis system on Ubuntu server. When I create the git repo on the server, I run sudo git init --bare <repo name> I then have to run sudo chgrp -R gitosis <repo name> && sudo chown -R gitosis <repo name>.

like image 149
sean_m Avatar answered Sep 20 '22 18:09

sean_m


According to this article git repack remote/origin/master might help in case your local repository was corrupted. To check that you can try cloning your remote repo into new directory and test push from it.

like image 30
KL-7 Avatar answered Sep 24 '22 18:09

KL-7