not able to push file more than 100mb to git hub

后端 未结 2 1283
南方客
南方客 2021-01-24 01:30

I am getting this error when I do so exceeds GitHub\'s file size limit of 100 MB Is there any way that I can push files more than 100 mb to git hub I am trying to push a zip fi

相关标签:
2条回答
  • 2021-01-24 02:04

    You will not be allowed to push files larger than 100MB. For more details check this link: GIT - working with large files

    You can split up your zip file into 2 files of sizes less than 100MB and push the same.

    0 讨论(0)
  • 2021-01-24 02:05

    Generally no as this is an intentional limitation in GitHub. The reason for this limitation is that git (general git, not GitHub) stores every version of each file. Therefore having multiple revisions of large files will make the repository bloat and increases the clone and fetch times for other users of a repository (see GitHub Help - Working with large files).

    The way GitHub recommends working with large files is using Git LFS (Large File Storage), generally explained as:

    ... an open-source extension to Git that allows you to work with large files the same way as any other text

    With Git Large File Storage, you and your repository's contributors can clone large files from the Git command line, open pull requests, and comment on the diffs. It's the ideal solution for pushing files to GitHub that are larger than 100 MB.

    (see GitHub documentation - versioning large files).

    As a general recommendation (not necessarily related to GitHub) the best practice would be not to work with big files, and consider other alternatives to your specific case.

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