3 ms·
Do you know about “git grep”? It’s like grep but only greps files tracked by git. Very useful.
by atwood22 4y ago
Do you know about “git grep”? It’s like grep but only greps files tracked by git. Very useful.
- wonderbore 4y agoWhy use a git-specific tool when a generic one (rg) works just as well, even from a parent directory? I often use rg to search code across repositories so it's useful to have that regardless of grep and git
- Tempest1981 4y agoOften a directory contains a mix of source files (in git) and output files (usually in .gitignore). But maybe rg automatically handles this?
- jraph 4y agoIt does
- jraph 4y agoI didn't, seems worth giving a look.