I added some files to the repo, committed, and attempted to push to Github:
$ git add .
$ git commit -m 'bla'
$ git push origin master
I am getting an error when I try to push to Github.
Counting objects: 84, done.
Delta compression using up to 2 threads.
error: pack-objects died of signal 9
error: failed to push some refs to '[email protected]:xxxxx/xxxxx.git'
All was working fine before I went on vacation 2 weeks ago. Nothing has changed in the interim as far as I know. The config file seems to be fine. And git push -f also generates the same errors as above.
Try this:
git config --global pack.windowMemory "32m"
Git repack organizes unpacked objects into packs, which are a collection of objects, individually compressed, with delta compression applied, stored in a single file, with an associated index file.
git repack -a -d -f --window=0
I'm quite convinced you have a local problem and it's nothing to do with GitHub. A git push consists of the following steps:
Quite clearly, it's the first step that fails. You might be out of memory/swap?
On a FreeBSD box with a lean RAM profile and a large repository with many files, I started getting this error. The /var/log/messages
file contained errors like this:
pid 93208 (git), jid 0, uid 1001, was killed: out of swap space
I was able to resolve this by adding a little more swap space temporarily.
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