Skip to content

Instantly share code, notes, and snippets.

@soanvig
Last active December 16, 2021 18:56
Show Gist options
  • Save soanvig/8a926f7be5c8a155bf819bf6e13223c4 to your computer and use it in GitHub Desktop.
Save soanvig/8a926f7be5c8a155bf819bf6e13223c4 to your computer and use it in GitHub Desktop.
Git: rename words in all commits without resolving conflicts again
git filter-branch -f --msg-filter 'cat "$@" | sed \'s/FOO/BAR/g\'' -- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment