Terminology
git grep -i ¶ definition: 'Ignore case differences between the patterns and the files.'
ety: ''
variants: ''
git log —grep <string> ¶ Look for commits with a certain phrase in the commit message.
git log —pretty=oneline | grep <string> ¶ Find commit(s) with comments containing <string>.
grep -A <number> ¶ Show <number> lines of context after each match.
grep -B <number> ¶ definition: 'Show <number> lines of context before each match.'
ety: ''
variants: ''
grep -c ¶ definition: 'Suppress normal output; instead print a count of matching lines for each input file.'
ety: ''
variants: ''
grep -C <number> ¶ Show <number> lines of context before and after each match.
grep -l ¶ definition: 'Only output names of matching files.'
ety: ''
variants: ''
grep -l <string1> <filepattern> | xargs grep -l <string2> ¶ definition: 'Find files containing both of two separate strings.'
grep -m <n> ¶ definition: 'Stop reading a file after <n> matching lines.'
ety: ''
variants: ''
grep -o ¶ definition: 'Output not the whole matching line but only the matching part of the line.'
ety: ''
variants: ''
grep -r ¶ definition: 'Recursive: Traverse subdirectories.'
ety: ''
variants: ''
grep -v ¶ definition: 'Invert the sense of matching, to select non-matching lines.'
ety: ''
variants: ''
ls -l | grep -v ^d ¶ definition: 'List files but not directories.'
ety: ''
variants: ''