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

后端 未结 8 674
野趣味
野趣味 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:38

    I hit the same problem yesterday and cracked it. I was unable to push, and it appeared that none of my big files were in lfs.

    There is probably a better way, but this worked for me. I have a large repo with 2.5 gigs of data.

    I setup a new repo then setup lfs in it. git lfs init

    I then configured my various file types git lfs track "*.pdb" git lfs track "*.dll" I then commmited my changes and pushed.

    I then added my big files. I used sourcetree, and in the output notes it would state for the big files matching my wildcards that it was committing tiny txt file instead. (sorry, I didn't record these, but it should be obvious).

    Then I pushed, and I saw 'skipping files', and the push succeeded quickly.

    so the problem is probably trying to add files to lfs that are already in your history. You can only add new files. You can probably clean your repo of these files.

    Note: I did find that quite a few files that matched my wildcards were not picked up by lfs. Similar files in different folders were picked up, but not all. I tried explicitly adding these files using the full path. git lfs track "Windows/bin/myBigFile.dll" but that didn't help either. In the end I gave up due to time constraints.

    You should also check your storage limit with gitHub. I purchased the extra 50gig to cover my requirements.

    Cloning the repo now downloads the files separately and everything is finally working well.

    0 讨论(0)
  • i had same issue, but it's resolved using filter-branch

    git filter-branch --tree-filter 'rm -rf path/to/your/file' HEAD

    it'll take some time if you have big project, then push it

    git push

    0 讨论(0)
  • 2020-11-29 07:47

    This may be help you

    Click-OriginalWebPage

    Only install lfs to a exist repo may be not enough. Your may also change the commit history. Hope this is work for you .

    0 讨论(0)
  • 2020-11-29 07:47

    It looks like you haven't initialised git-lfs. Try to type

    git lfs init
    

    Source: Installing Git LFS

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-11-29 07:56

    I had this error:

    remote: error: File client/static/static-version/20171221_221446.psd is 223.61 MB; this exceeds GitHub's file size limit of 100.00 MB

    And because I already removed this file from this folder, created .gitignore file and tried to commit couple times, I didn't know that it was cached, I could not push to github. In my case helped:

    git filter-branch --index-filter 'git rm --cached --ignore-unmatch client/static/static-version/20171221_221446.psd'

    Where I placed full file path(from error above) to remove it from cache. After that, push was made successfully

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