diff --git a/pages/common/git-grep.md b/pages/common/git-grep.md index ea99a7ec0c..9db6487d1a 100644 --- a/pages/common/git-grep.md +++ b/pages/common/git-grep.md @@ -19,3 +19,7 @@ - Search for a string at a specific point in history: `git grep {{search_string}} {{HEAD~2}}` + +- Search for a string across all branches: + +`git grep {{search_string}} $(git rev-list --all)`