Created
April 27, 2012 06:37
-
-
Save gonzedge/2506648 to your computer and use it in GitHub Desktop.
Git: Removing sensitive data and rewriting history
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git filter-branch --index-filter 'git rm --cached --ignore-unmatch -- resources/*.mp3' --prune-empty -- --all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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