Saturday, March 13, 2021

Issue with storing large files in GitHub



As of: March 2021

$ git push

Username for...
Password for...
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 2 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 52.51 MiB | 1.79 MiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
remote: warning: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: warning: See http://git.io/iEPt8g for more information.
remote: warning: File Aurélien Géron - Hands-On ML.pdf is 54.00 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB
To https://github.com/...
   d-0..e-b  main -> main 

Note that it is warning above and the file larger than 50 MB (of size 54 MB) did get stored.

Now the actual error that appears when we try a file above 100 MB

$ git push

Username for ...
Password for ...
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 2 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 496.30 MiB | 3.34 MiB/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: ee6354b20640d5e4827787bca87a59fa6daee92f16caf2847e096c5485dd612a
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File xyz.tgz is 510.11 MB; this exceeds GitHub's file size limit of 100.00 MB
To https://github.com/${username}/${repo_name}.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/${username}/${repo_name}.git'

Tags: Technology,GitHub,
Title: Issue with storing large files in GitHub 

No comments:

Post a Comment