Skip to content

Instantly share code, notes, and snippets.

@shuhei
Created March 17, 2015 10:06
Show Gist options
  • Save shuhei/41dd3c0b71b87e19dfe0 to your computer and use it in GitHub Desktop.
Save shuhei/41dd3c0b71b87e19dfe0 to your computer and use it in GitHub Desktop.
Replace all files in a git repo on OSX
git grep --name-only foo | xargs sed -i '' 's/foo/bar/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment