git-when-merged
« Back to VersTracker
Description:
Find where a commit was merged in git
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: git version-control developer-tools command-line automation
Install: brew install git-when-merged
About:
git-when-merged is a command-line utility that determines the merge commit(s) that incorporated a specific commit into a target branch. It solves the common Git problem of tracing when and how a commit from one branch was integrated into another, which is particularly useful for complex histories with rebasing or multiple merge paths.
Key Features:
  • Identifies the exact merge commit(s) that brought a commit into a target branch
  • Handles complex histories including multiple merge bases and rebased branches
  • Simple command-line interface that integrates with existing Git workflows
  • Outputs results in a format suitable for scripting and automation
Use Cases:
  • Auditing when bug fixes were merged from development branches to production
  • Verifying that feature branches were properly integrated into release branches
  • Generating reports for code review and compliance purposes
  • Debugging complex Git histories where commit origins are unclear
Alternatives:
  • git-log – git-log can trace ancestry but requires complex command-line options and doesn't directly answer 'which merge brought this commit here?'
  • git-merge-base – Finds common ancestors but doesn't identify the specific merge commits that integrated changes
Version History
Detected Version Rev Change Commit