Skip to content

Instantly share code, notes, and snippets.

@amccarty
Created October 6, 2014 14:03
Show Gist options
  • Save amccarty/b31b06e37d9db58bcb2c to your computer and use it in GitHub Desktop.
Save amccarty/b31b06e37d9db58bcb2c to your computer and use it in GitHub Desktop.
git filter-branch: replace string A with string B
git filter-branch --tree-filter "find . -name '*.rb' -exec sed -i -e 's/stringA/stringB/g' {} \;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment