Remove Files from Commit History git filter-branch --tree-filter 'rm -f path/to/file.remove' HEAD Source Stack Overflow