git remove all histories of a file code example
Example: git remove file from history
$ git rm --cached giant_file
# Stage our giant file for removal, but leave it on disk
$ git rm --cached giant_file
# Stage our giant file for removal, but leave it on disk