Can't push to GitHub error: pack-objects died of signal 13

前端 未结 6 1503
醉话见心
醉话见心 2020-12-03 17:32

I\'m having trouble pushing my local folder to my remote repository on GitHub.

After I push it gets to around 96% then shows this..

Counting objects:         


        
相关标签:
6条回答
  • 2020-12-03 17:50

    The same thing happened to me. I just tried git push two more times and the third time it worked.

    0 讨论(0)
  • 2020-12-03 17:53

    Add this problem with bitbucket for hours. My solution was to enter the server via ssh and do a git clone of the project from there.

    0 讨论(0)
  • 2020-12-03 17:55

    Simple solution is to increase the HTTP post buffer size to allow for larger chunks to be pushed up to the remote repo. To do that, simply type:

    git config http.postBuffer 52428800
    

    The number is in bytes, so in this case I have set it to 50MB. The default is 1MB.

    0 讨论(0)
  • 2020-12-03 18:02

    I had a similar problem. I was adding huge datasets (8.2, 2.3, 3.5 GB as zip) to the repo. All I had to do is to push those files one at a time instead of pushing all 15GB together.

    0 讨论(0)
  • 2020-12-03 18:03

    This might be caused by the new GitHub limits on file sizes, or possibly the packing process is crashing out due to large data (like in this other SO question from 2011: Alternative way to do an initial push of a large repo) before those particular limits can even be reported.

    A few weeks ago on a colleague's Mac OS X machine I saw a similar opaque error messag when pushing (tho' only over HTTPS - SSH gave the good error message) - yet having tried to reproduce this just now by pushing a big file to GitHub on my own Mac, I got the expected informative error message on both connection protocols ("remote: error: File big is 976.56 MB; this exceeds GitHub's file size limit of 100 MB"). It's possible that my colleague had an older version of Git installed that couldn't report the errors correctly.

    If you decide you need to remove the large files from your Git history (as it's the only way you'll get them pushed up to GitHub), I can recommend The BFG:

    $ java -jar bfg.jar  --strip-blobs-bigger-than 50M  my-repo.git
    

    Full disclosure: I'm the author of the BFG Repo-Cleaner.

    0 讨论(0)
  • 2020-12-03 18:07

    If you couldn't start the proccess it could also mean that permissions of your master server repository are wrong. I've just faced this problem, and my repository on master was with root.root permissions, so my user git couldn't write data there.

    You may try checking your master's repository permissions before trying to push.

    0 讨论(0)
提交回复
热议问题