Last Updated: February 25, 2016
·
1.044K
· ftassi

Remove sensitive data from git repository

Long story short:

git filter-branch --index-filter 'git rm --cached --ignore-unmatch MyPasswordFile' \
--prune-empty --tag-name-filter cat -- --all

More details:
https://help.github.com/articles/remove-sensitive-data