瀏覽代碼

git-grep: add new example (#3203)

Ivan Aracki 5 年之前
父節點
當前提交
41d82606b5
共有 1 個文件被更改,包括 4 次插入0 次删除
  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)`