Re: Command to list <pattern> Branches on a specific Remote (i.e. select from rtb's)
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 28, 2019, 13:57 UTC
- Message-ID
- <xmqqa7f6el6b.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <87lfz3vcbt.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 7 quoted lines
> That's: > > git for-each-ref 'refs/remotes/<remote>/<pattern>' > git branch -a -l '<remote>/<pattern>' > > The latter will conflate <remote> with any local branches you happen to > have prefixed with <remote>.
Wouldn't "branch -r -l <remote>/<pattern>" be without that downside? Why use "-a"?