Created
July 27, 2022 18:05
-
-
Save betawax/19fa6fdf88d759eff99f0de55d9e36cc to your computer and use it in GitHub Desktop.
Replace a string in the entire Git history
This file contains 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 --tree-filter 'if [ -f README.md ]; then sed -i "s/foo/bar/g" README.md; fi' HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment