Last Updated: February 25, 2016
·
1.547K
· juggler

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