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 file which is 114 mb . Is there any simple work around for this. thank you
问题:
回答1:
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 repo bloat and increase the clone and fetch times for other users of a repository (see here).
The way GitHub recommends working with large files is using Large File Storage which is
... 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 here).
However, this option is part of an early access program and only available to participating users and organizations.
In any case, 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.
回答2:
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.