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?
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>
.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With