how to remove git history for a file
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
Source: stackoverflow.com
git remove file from history
$ git rm --cached giant_file // Stage our giant file for removal, but leave it on disk
Source: help.github.com
remove file history from git
git filter-branch --index-filter "git rm -rf --cached --ignore-unmatch path_to_file" HEAD
Source: stackoverflow.com
delete file from git history
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" --prune-empty --tag-name-filter cat -- --all
Source: stackoverflow.com
delete file from git history
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch PATH-TO-YOUR-FILE-WITH-SENSITIVE-DATA" --prune-empty --tag-name-filter cat -- --all
Source: stackoverflow.com