Global search & replace in a git repo
git grep -l 'original' | xargs sed -i '' 's/original/new/g'
Note '' in sed options - that is for substitution without creating backup files
Written by Max Prokopiev
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sed
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#