git error – can't push to github – pack-objects died of signal 9

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.

  • show all tags in git log
  • Is there a “correct” way to sync databases between live and dev servers?
  • SSH git commands with username and password
  • I wish I'd branched in Git - can I turn back time?
  • Create Eclipse Project from Android Git
  • Authenticating SourceTree with a Google Code project
  • 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 'git@github.com: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.

  • Build Error while syncing the Git repo: Illegal characters in path
  • Search git Commits Using Regex
  • Git progress watch while pulling / fetching
  • Eclipse Run Configuration - Working Directory for projects not in workspace
  • Gerrit gives missing change-id error even though the change-id is there
  • Collaborate using Git without Remote Server
  • 3 Solutions collect form web for “git error – can't push to github – pack-objects died of signal 9”

    Try this:

    git config --global pack.windowMemory "32m"
    

    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:

    • local: delta compression of objects
    • net: Writing new compressed objects to remote repo via SSH
    • net: update refs in remote repo via SSH

    Quite clearly, it’s the first step that fails. You might be out of memory/swap?

    Had this problem pushing to Gitlab.

    Fixed it by adding .* to my .gitignore

    i.e. ignored all files/folders e.g. .git beginning with .

    Git Baby is a git and github fan, let's start git clone.