summaryrefslogtreecommitdiff
path: root/content/notes/git.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/notes/git.md')
-rw-r--r--content/notes/git.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/content/notes/git.md b/content/notes/git.md
index baed2b7..a4106b1 100644
--- a/content/notes/git.md
+++ b/content/notes/git.md
@@ -45,6 +45,16 @@ Search by author
git log --author="guy"
```
+Search for commits that modify a file or folder
+```
+git log -- path/to/file/or/folder
+```
+
+Find the oldest tag that contains a commit
+```
+git describe c2b0ce70add2a7dd6e792341c21278cb94820684
+```
+
List contributors by commit count:
```
git shortlog --summary --numbered --all --no-merges