diff options
| -rw-r--r-- | git.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -36,3 +36,14 @@ directory of just the code, not a repo: Change remote url: git remote set-url <remote> <new url> + +## git log + +Find commits that added or removed a particular string (specifically, where the +number of occurences changed): + + git log -S <pattern> + +Find commits that contain the given pattern in the diff: + + git log -G <pattern> |