From e875845f511d04d7ff9d41ddf767233953ebaf46 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Thu, 17 Sep 2026 10:07:20 +0200 Subject: Add git searching --- git.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'git.md') diff --git a/git.md b/git.md index 34d814f..a935060 100644 --- a/git.md +++ b/git.md @@ -36,3 +36,14 @@ directory of just the code, not a repo: Change remote url: git remote set-url + +## git log + +Find commits that added or removed a particular string (specifically, where the +number of occurences changed): + + git log -S + +Find commits that contain the given pattern in the diff: + + git log -G -- cgit v1.2.3