git-grep
Verified for current stable LTS
Git Grep Commands
Git Grep command syntax with verified terminal examples.
Commands
5 commands for Git Grep
git-grep Search
Git Grep Command: Search String Across All Branches
git grep "<search_string>" $(git rev-list --all) git-grep Search
Git Grep Command: Search String At Specific History
git grep "<search_string>" <HEAD~2> git-grep Search
Git Grep Command: Search String In Current Head
git grep "<search_string>" git-grep Search
Git Grep Command: Search String Including Submodules
git grep --recurse-submodules "<search_string>" git-grep Search
Git Grep Command: Search String With Glob In Current Head
git grep "<search_string>" -- "<*.ext>" Suggest a Git Grep Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Git Grep workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.