version control

Remove cached files in your Git history

So today I stumbled upon an issue where I was unable to remove a chunk of code that was left in my repository for some reason. I accidentally added a 1.2 Gib database dump and after I removed it from my repository and git rm –cached  it, Git would still try to to push this huge read further ...