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

前端 未结 6 1515
醉话见心
醉话见心 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 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.

提交回复
热议问题