Last active
December 14, 2015 16:59
-
-
Save dx7/5119553 to your computer and use it in GitHub Desktop.
Busca e troca sua senha e token em todo o histórico do repositório git. Útil quando vc faz commit com dados sensíveis e precisa abrir o repositório.
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 -f --tree-filter "find . -type f -exec sed -e s/your-plain-password/some-string/ -e s/\'your-plain-token\'/ENV[\'ENVIRONMENT_VARIABLE_TOKEN\']/ -i '' {} \;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment