Skip to content

Instantly share code, notes, and snippets.

@ErikLuimes
Created May 21, 2016 18:02
Show Gist options
  • Select an option

  • Save ErikLuimes/e666d5f72365022fddb53f5882042539 to your computer and use it in GitHub Desktop.

Select an option

Save ErikLuimes/e666d5f72365022fddb53f5882042539 to your computer and use it in GitHub Desktop.
#
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment