Как удалить историю GIT для файла
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