summaryrefslogtreecommitdiff
path: root/content/notes/git.md
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2026-10-10 09:45:39 -0500
committerHunter Kvalevog <hunter@kvog.sh>2026-10-10 09:45:39 -0500
commit7cf26abdf59289a86d96e022cc78d582b7e0e987 (patch)
treee662c45ca25b8a474cbfdf50dd6a69b12540de6d /content/notes/git.md
parentf02a764d528a14dd67c854ce3df89cc90e492242 (diff)
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