> git branch [-r|-a] --contains 4356hae I should have known/remembered that! Thank you for the clarification.
On Wednesday, June 29, 2022 at 11:27:35 AM UTC+1 Konstantin Khomoutov wrote: > 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/a48f78bc-24bf-4543-824e-eb15aa2ab046n%40googlegroups.com.