git/grep

Search Code

Print lines matching a pattern

git
grep
search

Command

git grep

Explanation

git grep is used to print lines matching a pattern. It prints the lines that match the pattern.

Examples

Search for TODO in code

git grep "TODO"