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

后端 未结 8 675
野趣味
野趣味 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
    
    0 讨论(0)
  • 2020-11-29 08:05

    I have faced the same problem while some of my csv file was merged in previous commit and github rejected my push. Later I found this command which worked for me.

    git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch fixtures/11_user_answer.json'
    # for my case
    git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch tensorflow.csv'
    
    

    Original post link

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