Re: Command to list <pattern> Branches on a specific Remote (i.e. select from rtb's)
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- May 19, 2019, 03:05 UTC
- Message-ID
- <CACsJy8B_3ZytR+5HvOax=ngw7ECse8_5ajkOvUEcOj3MuNxQvQ@mail.gmail.com>
- In-Reply-To
- <87lfz3vcbt.fsf@evledraar.gmail.com>
On Sun, May 19, 2019 at 1:41 AM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
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>.
That problem should be gone if you use -r instead of -a.
-- Duy