On Tue, Jun 28, 2022 at 01:54:06PM -0700, Namasi wrote:

[...]

> For instance if "main" branch has a commit (ID: 4356hae), how to list out 
> the branches that containing his content/commit ID?

This one is easy:

  git branch [-r|-a] --contains 4356hae

will list all the local (or remote, if '-r' is specified, or local and remote,
if '-a' is specified) branches from the tips of which that commit is
reachable, and which hence "contain" it.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20220629102728.hz342iuysttn5lnm%40carbon.

Reply via email to