I got the following error message when I pushed my project to Github. "File CoreMLObjectRecognition/coreMLModels/YOLOv3.mlmodel is 236.88 MB; this exceeds GitHub's file size limit of 100.00 MB"
Then I realized the file is too large, and anyway I no longer needed the file so I did the following.
- Deleted the file from the project
- Added the directory(CoreMLObjectRecognition/coreMLModels/, "YOLOv3.mlmodel" was in the directory, but have been deleted.) to .gitignore since the directory will contain large files.
- "git rm -r --cached ." and "git add ." to reflect .gitignore
- "git ls-files" to check which files are under the control of git. "YOLOv3.mlmodel" was not on the list.
- "git commit" but got the msg saying: "On branch main Your branch is ahead of 'origin/main' by 12 commits. (use "git push" to publish your local commits) nothing to commit, working tree clean"
- "git push" to push the change to the remote repository.
Then I still get the same error: "File CoreMLObjectRecognition/coreMLModels/YOLOv3.mlmodel is 236.88 MB; this exceeds GitHub's file size limit of 100.00 MB"
What did I do wrong? Can someone help me?