Skip to content

Instantly share code, notes, and snippets.

@gonzedge
Created April 27, 2012 06:37
Show Gist options
  • Save gonzedge/2506648 to your computer and use it in GitHub Desktop.
Save gonzedge/2506648 to your computer and use it in GitHub Desktop.
Git: Removing sensitive data and rewriting history
git filter-branch --index-filter 'git rm --cached --ignore-unmatch -- resources/*.mp3' --prune-empty -- --all
git filter-branch --tree-filter 'sed -i s/the_password/the_dummy_password/g config/database.yml'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment