git-when-merged
brew install git-when-merged
v1.2.1
GPL-2.0-only
Find where a commit was merged in git
21
30-day installs · #6685
26
90-day · #9053
72
365-day · #10098
462
★ GitHub stars · updated 3y ago
Links
- https://github.com/mhagger/git-when-merged
- GitHub: mhagger/git-when-merged
- Brew formula source: Formula/g/git-when-merged.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Find where a commit was merged in git",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:38:06+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "git-when-merged",
"github_default_branch": "master",
"github_last_commit_at": "2023-08-06T07:59:58Z",
"github_readme_excerpt": "# `git when-merged`\n\n`git when-merged` helps you figure out when and why a commit was merged into a branch.\n\nIf you use standard Git workflows, then you create a feature branch for each feature that you are working on. When the feature is complete, you merge it into your `master` branch. You might even have sub-feature branches that are merged into a feature branch before the latter is merged.\n\nIn such a workflow, the first-parent history of `master` consists mainly of merges of feature branches into the mainline. `git when-merged` can be used to ask, \"When (and why) was commit C merged into the current branch?\" The simplest way to use it is\n\n```ShellSession\n$ git when-merged 87c248f\nrefs/heads/master 50f577451448a407ee8e78ed62aa09d209c91652\n```\n\nThis command looks along the first-parent history of the current branch to find the merge commit that first brought commit `87c248f` into the branch\u0027s history. The guilty merge commit in this case is `50f5774`. Add the `-l` option to see the log for that merge, which will hopefully explain what feature was being merged and by whom:\n\n```ShellSession\n$ git when-merged -l 87c248f\nrefs/heads/master 50f577451448a407ee8e78ed62aa09d209c91652\ncommit 50f577451448a407ee8e78ed62aa09d209c91652 (github/master, master)\nMerge: f79a45d 87c248f\nAuthor: Michael Haggerty \u003cmhagger@alum.mit.edu\u003e\nDate: Mon Jul 11 07:55:19 2016 +0200\n\n Merge pull request #9 from mhagger/recursive-option\n\n Add a `--recursive`/`-r` option\n```\n\nThere are many more options; see below.\n\n\n## Installation\n\n**_Note: If you are using 2.6 \u003c= Python \u003c= 3.6, you MUST use Option 3 or 4._**\n\n\u003cdetails open\u003e\n\u003csummary\u003e\u003ch3\u003eOption 1: Install as a stand-alone command line tool.\u003c/h3\u003e\u003c/summary\u003e\n\u003cbr\u003e\n\n\u003e pipx is a tool to help you install and run end-user applications written in Python.\n\n1. [Install `pipx`](https://pipxproject.github.io/pipx/installation/):\n\n ``` sh\n python3 -m pip install --user pipx\n ```\n\n - Tip: [Homebrew](htt",
"github_repo": "mhagger/git-when-merged",
"github_stars": 462,
"github_topics": [],
"homepage": "https://github.com/mhagger/git-when-merged",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 21,
"installs_365d": 72,
"installs_90d": 26,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "GPL-2.0-only",
"llm_generated_at": null,
"llm_model": null,
"name": "git-when-merged",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 6685,
"rank_365d": 10098,
"rank_90d": 9053,
"raw_hash": "f243fb2d28cf9ece",
"recommended_dependencies": [],
"revision": 0,
"ruby_source_path": "Formula/g/git-when-merged.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [
"python"
],
"version_head": "HEAD",
"version_stable": "1.2.1",
"versioned_formulae": [],
"why_use_this": null
}