TL;DR: BFG is your friend. java -jar bfg.jar -b 50M myrepo-bfg.git for example
The other day I've committed a rather large file by mistake (generated movie of the git commit history). This was a bit annoying because all other developers would have suddenly to check