I accidentally pushed large files to my git repository. Git complained that:
remote: error: GH001: Large files detected. You may want to try Git Large File Storage error: failed to push some refs to ...
After this, I tried to add those files to git ignore. I clearly saw that the status of those files that were too large changed to deleted.
However, after committing .gitignore and pushing again, I am surprised that git is still trying to push to the repository the large file I mistakenly pushed to the repo.
I tried git push -f origin HEAD^:master but nothing still worked. Git is still attempting to push the large file and I keep getting the same errors above.
Even after reverting my repo to a previous commit (before I had committed the large file), when I push, git is still pushing that large file.
Can anyone help me resolve my issue?
Thanks!