From: Junio C Hamano Date: Fri, 22 Jun 2012 18:14:59 GMT Subject: Re: [RFE] option for find branches in a remote repo which contain a certain commit Message-ID: <7vtxy3p61o.fsf@alter.siamese.dyndns.org> In-Reply-To: Ævar Arnfjörð Bjarmason writes: > On Fri, Jun 22, 2012 at 4:58 PM, ryenus 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 > git branch -a --contains > git tag --contains Yes and no. These are all local operations, so you would need to do a "git clone" before starting to dig history like that.