We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae94810 commit 71ab4f4Copy full SHA for 71ab4f4
1 file changed
tools/dev.md
@@ -25,7 +25,7 @@ where
25
* `s/[^-][^\/]*\//--/g`: replace directory path segments with `--`.
26
* `s/^/ /`: indent.
27
* `s/--/|/`: replace the first `--` with a vertical bar.
28
-
+
29
30
### git
31
@@ -40,6 +40,17 @@ $ git diff -U0 | grep '^[+-]' | grep -Ev '^(--- a/|\+\+\+ b/)'
40
which selects for all lines beginning with either a `+` or `-` character and then removes lines listing the filename.
41
42
43
+#### Search Commits
44
45
+To search all commits for a particular string,
46
47
+``` bash
48
+$ git rev-list --all | xargs git grep -F 'string'
49
+```
50
51
+where `-F` indicates to search for a fixed string. To search using a regular expression, use `-P` (see `git grep --help`).
52
53
54
### Find and Replace
55
56
#### Multi-file
0 commit comments