Browse Source

git-grep: add new example (#3203)

Ivan Aracki 5 năm trước cách đây
mục cha
commit
41d82606b5
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      pages/common/git-grep.md

+ 4 - 0
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)`