Re:Oh shit, git: Getting myself out of bad situations
by pierre-renaux on Monday December 18, 2017 @10:47AM
(#15952381)
Git bfg should do the job, it works well for that and to remove files with secrets... or really anything you want to pretend never existed in your repo :)
https://rtyley.github.io/bfg-repo-cleaner/