I need to push a Unity project, but one of my files is a Unity scene (.unity) and is 250mb. I already installed LFS and tracked this file:
git lfs track "*.unity"
git add .gitattributes
But when I try to push, i get the same error i got before doing it:
$ git push Uploading LFS objects: 100% (36/36), 273 MB | 0 B/s, done Enumerating objects: 192, done. Counting objects: 100% (192/192), done. Delta compression using up to 4 threads Compressing objects: 100% (105/105), done. Writing objects: 100% (106/106), 56.70 MiB | 3.28 MiB/s, done. Total 106 (delta 56), reused 0 (delta 0) remote: Resolving deltas: 100% (56/56), completed with 50 local objects. remote: error: GH001: Large files detected. You may want to try Git Large File S torage - https://git-lfs.github.com. remote: error: Trace: f8294b41f796452a459f39193e37e22f remote: error: See http://git.io/iEPt8g for more information. remote: error: File Assets/Scenes/Full.unity is 246.08 MB; this exceeds GitHub's file size limit of 100.00 MB To https://github.com/EXHOUL/Metalself.git ! [remote rejected] develop -> develop (pre-receive hook declined) error: failed to push some refs to 'https://github.com/EXHOUL/Metalself.git'
Is there something I'm missing? Thanks in advance :)
Solved! Solved! Go to Solution.
Thank you for being here! The error you're seeing generally indicates that the file was already committed to the regular Git repository before the LFS tracking was added for it. I recommend reviewing our Moving a file in your repository to Git Large File Storage guide for steps on moving these files over. Specifically the information within the blue box showing the command and information on using
git lfs migrate should help you out here.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!