I mistakenly committed a 300 MB file into a git repository, then pushed to Github and got a message that the file is too large.
So I deleted the file as instructed here: https://help.github.com/articles/working-with-large-files
git rm --cached giant_file
git commit --amend -CHEAD
but got the same error:
remote: error: File giant_file is 313.04 MB; this exceeds GitHub's file size limit of 100 MB
I tried to remove the file again, but got the error:
$ git rm --cached giant_file
fatal: pathspec 'giant_file' did not match any files
How can I get rid of this huge file?