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

后端 未结 8 732
野趣味
野趣味 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 07:53

    If you know which commit introduced the large commit, you could also try squashing that commit with the subsequent commits that introduced Git LFS.

    For example, if the large commit was three commits ago (as revealed by git status), you could do the following:

    git rebase -i HEAD~3
    

    Then, replace all "pick" usages after the first one with "squash" in the interactive dialog.

    Then,

    git push origin --force
    

提交回复
热议问题