Skip to content

Instantly share code, notes, and snippets.

@pauloromeira
Created April 10, 2018 02:29
Show Gist options
  • Save pauloromeira/84de6a3e8531cb3d6e17f9a6e1308313 to your computer and use it in GitHub Desktop.
Save pauloromeira/84de6a3e8531cb3d6e17f9a6e1308313 to your computer and use it in GitHub Desktop.
Replace string in all Git history.
git filter-branch --tree-filter "find . -name '*.*' -exec sed -i '' -e 's/OLDSTRING/NEWSTRING/g' {} \;" -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment