40lxaw
Last Updated: February 25, 2016
·
1.332K
· juggler
Tf27cc9q1 a

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

Say Thanks
Respond
Filed Under