How can I search for a commit by subject line?
git log -p --oneline --all | grep '...'
Or use git-gl and search with FZF.
How can I search commit message contents?
git log -p --all --grep='...'
Or use git-gl --grep='...' for an interactive search.
How can I search commit diffs?
Use pickaxe search!
git log -p --all -S='...'
Or use git-gl -S='...' for an interactive search.
How can I find the first commit where a term was introduced?
Add --reverse to any of the git log invocations above. You can't use --reverse with git-gl though, my bad 🙈
How can I search for a commit by subject line?
Or use
git-gland search with FZF.How can I search commit message contents?
git log -p --all --grep='...'Or use
git-gl --grep='...'for an interactive search.How can I search commit diffs?
Use pickaxe search!
git log -p --all -S='...'Or use
git-gl -S='...'for an interactive search.How can I find the first commit where a term was introduced?
Add
--reverseto any of thegit loginvocations above. You can't use--reversewithgit-glthough, my bad 🙈