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.
Written by Jesse Wolgamott
Related protips
1 Response
Wow, this really is faster than ack and is comparable to ag. (And far faster than grep, obviously.)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#