当我尝试将我的存储库推送到GitHub时,我一直从git收到以下错误。关于如何进步的任何建议?
$ git push
Counting objects: 111483, done.
Delta compression using up to 40 threads.
Compressing objects: 100% (37859/37859), done.
Writing objects: 100% (111481/111481), 14.52 MiB | 413.00 KiB/s, done.
Total 111481 (delta 92154), reused 92835 (delta 73622)
remote: fatal: non-blob object size limit exceeded
error: unpack failed: index-pack abnormal exit
To https://github.com/<my repository>
! [remote rejected] master -> master (failed)
error: failed to push some refs to 'https://github.com/<my repository>'
答案 0 :(得分:3)
此错误是由git内部数据存储中的文件太大而github拒绝过大的文件引起的。有三种常用方法可以使文件过大:
(这是基于@ torek的评论,引导我朝着正确的方向发展)。