link
Rewrite branches to filter out some files or modify commits
git filter-branch
Remove file from history
git filter-branch --tree-filter "rm -f secret.txt"