The command you are looking for is filter-branch
. It allows you to permanently remove files from an enlistment. This blog has a great tutorial on how to remove problematic files from the repository
- http://dalibornasevic.com/posts/2-permanently-remove-files-and-folders-from-a-git-repository