I cannot push new changes to my remote GitHub repository because my IOS Swift project uses the opencv framework, which is 150 MB large. I get the following error message:
remote: error: GH001: Large files detected.
You may want to try Git Large File Storage - https://git-lfs.github.com.
remote: error: Trace: ......aa11d45...12994...
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File Pods/OpenCV/opencv2.framework/Versions/A/opencv2 is 150.06 MB; this exceeds GitHub's file size limit of 100.00 MB
! [remote rejected] master -> master (pre-receive hook declined)
I have try the Large File Storage, by running the following command line commands:
git lfs track "Pods/OpenCV/opencv2.framework/Versions/A/opencv2"
git add .gitattributes
but I still get the same error message.
How can I push changes to GitHub when I have a large framework file like opencv2.