Search commit messages
Find all commits whose message contains a pattern
git log --all --grep='fix:' --oneline
More git commands
-
git log -S 'functionName' --patch --allFind when a string was added or removed across all branches
-
git clone --filter=blob:none <url>Download commits and trees; blobs fetched on-demand (fast)
-
git worktree add ../hotfix-branch hotfix/urgentCheck out a branch in a separate directory without switching
-
git rebase -i HEAD~5Interactively reorder, squash, or edit last 5 commits
-
git cherry-pick abc1234Apply a specific commit from another branch