I have a large size of project that I push to GitHub and there is limit size to push files to GitHub, so I am trying to push only a folder that contains some files so I do this:
git add android/
git commit -m "my commit"
git push origin dev
but I got this response:
remote: error: File build/ios/Release-iphoneos/Flutter.framework/Flutter is 414.78 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To https://github.com/mygit/projectrepo
! [remote rejected] dev -> dev (pre-receive hook declined)
error: failed to push some refs to 'https://...'
It seems like I still push all of the file although I do git add android/
because build/ios/Release-iphoneos/Flutter.framework/Flutter
is outside of android
folder
Is there a way to solve this ?