Created
August 1, 2011 14:48
-
-
Save jasonmc/1118271 to your computer and use it in GitHub Desktop.
Place in PATH and can call 'git redact xyz' to remove all occurenences of xyz in repo. Watch out for cached copies though.
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
#!/bin/bash | |
git filter-branch -f --tree-filter "sed -i '' -e 's/$1/REDACTED/' $FILENAME" -- --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment