Skip to content

Instantly share code, notes, and snippets.

@skellertor
Last active March 7, 2017 17:06
Show Gist options
  • Save skellertor/8f9ae11d2d74661c9d11b9ed7bdd4423 to your computer and use it in GitHub Desktop.
Save skellertor/8f9ae11d2d74661c9d11b9ed7bdd4423 to your computer and use it in GitHub Desktop.
Remove sensitive data that has been commited to git

Steps copied from

$ 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

$ git push origin --force --all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment