From 7cf26abdf59289a86d96e022cc78d582b7e0e987 Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Sat, 10 Oct 2026 09:45:39 -0500 Subject: --- content/notes/git.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'content/notes/git.md') 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 -- cgit v1.2.3