Context
I'm working alone on a project and I used github until now to save my work other than on my computer. Unfortunately, I added a very large file to the local repository : 300mb (which exceed Github's limit).
What I did
I will try to make an history of what I made :
I (dumbly) added everything to the index :
git add *
I committed changes :
git commit -m "Blablabla"
I tried to push to origin master
git push origin master
It took a while, so I just CTRL+C, and repeated step 2 and 3 four times, until I realised that a file was too large to be pushed to github.
I made the terrible mistake to delete my large file (I don't remember if I did a git rm or a simple rm)
I followed the instructions on (https://help.github.com/articles/remove-sensitive-data)
When I try to git filter branch, I get the following error : "Cannot rewrite branches: You have unstaged changes."