Git lfs - “this exceeds GitHub's file size limit of 100.00 MB”

后端 未结 8 720
野趣味
野趣味 2020-11-29 07:16

I have some csv files that are larger than github\'s file size limit of 100.00 MB. I have been trying to use the Git Large File Storage extension.

https://git-lfs.gi

8条回答
  •  渐次进展
    2020-11-29 08:01

    Simply adding git-lfs configuration to an existing repository will not retroactively convert your large files to LFS support. Those large files will remain in your history and GitHub will refuse your pushes.

    You need to rewrite your history to introduce git-lfs to your existing commits. I recommend the BFG repo cleaner tool, which added LFS support recently.

    You should be able to convert historical usage of your CSV files by:

    $ java -jar ~/bfg-1.12.5.jar --convert-to-git-lfs '*.csv' --no-blob-protection
    

提交回复
热议问题