Skip to content

Instantly share code, notes, and snippets.

@benmills
Created January 2, 2013 21:21
Show Gist options
  • Save benmills/4438177 to your computer and use it in GitHub Desktop.
Save benmills/4438177 to your computer and use it in GitHub Desktop.
git sed. usage: git sed <pattern to replace> <pattern to replace with>
sed = !git grep -l $1 | xargs sed -i "" -e "s/$1/$2/g" && echo > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment