mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
git-grep: add new example (#3203)
This commit is contained in:
parent
8465f20ccb
commit
41d82606b5
1 changed files with 4 additions and 0 deletions
|
@ -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)`
|
||||
|
|
Loading…
Add table
Reference in a new issue