git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFE] option for find branches in a remote repo which contain a certain commit

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jun 22, 2012, 15:24 UTC
Message-ID
<CACBZZX6nbWCFWWy5NTMSAPOf4RHUAbC9TuffPPy=2Ehn7KSnaA@mail.gmail.com>
In-Reply-To
<CAKkAvazRfb0kTphLKoRQxSEBZwHfVZeaM0xEbcxEw7Mt5RMg8A@mail.gmail.com>
On Fri, Jun 22, 2012 at 4:58 PM, ryenus <ryenus@gmail.com> wrote:
> Given a certain commit, I want there's a command/option for git to
> make it search the remote repo (e.g. origin) and tell me the
> branches there which contain that commit.

git branch --contains <commit> git branch -a --contains <commit> git tag --contains <commit>

Previous: ryenusNext: Junio C Hamano
Message 2 of 4 in “[RFE] option for find branches in a remote repo which contain a certain commit”
  1. ryenusJun 22, 2012
  2. Ævar Arnfjörð BjarmasonJun 22, 2012
  3. Junio C HamanoJun 22, 2012
  4. Neal KreitzingerJun 22, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.