Como remover o histórico do git para um arquivo
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
Defiant Dugong
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
$ git rm --cached giant_file
// Stage our giant file for removal, but leave it on disk
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD