remove file history from git

Shell
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
Source

Also in Shell: