Ævar Arnfjörð Bjarmason <ava...@gmail.com> writes:

> 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"?

Reply via email to