Skip to content

Instantly share code, notes, and snippets.

@thexande
Created February 16, 2019 04:40
Show Gist options
  • Save thexande/1893366c45716a1e9a0457ab2387e190 to your computer and use it in GitHub Desktop.
Save thexande/1893366c45716a1e9a0457ab2387e190 to your computer and use it in GitHub Desktop.
Replace string across entire version history
git filter-branch --tree-filter "find . -type f -exec sed -i -e 's/originalpassword/newpassword/g' {} \;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment