git grep "pattern" searches tracked files (faster than regular grep).
git grep -n "TODO" — show line numbers
git grep -c "console.log" — count matches per file
git grep -l "deprecated" — list files only
Searching through history: git log -S "functionName" (pickaxe) finds commits that added/removed that string.
git log -G "regex" — regex version.