Last Updated: February 25, 2016
·
446
· jwo

git grep only your views for a word

I've loved git grep for ever ever. Now? I can limit to just the app/views directory (or the current directory, whathaveyou).

The task: rename all buttons with "commit" to "save".

git grep 'commit' -- 'app/views/**/*'

git grep should be your goto command to search multiple files throughout your project. Super fast.

1 Response
Add your response

Wow, this really is faster than ack and is comparable to ag. (And far faster than grep, obviously.)

over 1 year ago ·