On Sun, May 19, 2019 at 1:41 AM Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> wrote: > 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