Skip to content

Instantly share code, notes, and snippets.

@zerc
Created September 28, 2013 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zerc/6744836 to your computer and use it in GitHub Desktop.
Save zerc/6744836 to your computer and use it in GitHub Desktop.
Переписываем историю своего гит репозитория
git filter-branch --tree-filter "find . \( -name 'filename1.py' -o -name 'filename2.sh' \) -exec sed -e \"s/password/fake_password/g\" -e \"s/api_key_secret/fake_key/g\" -i {} \;" HEAD --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment