Web lists-archives.com

Re: [PATCH] doc branch: provide examples for listing remote tracking branches




Philip Oakley <philipoakley@xxxxxxx> writes:

> However, isn't `-r <pattern>` broken?

No.

> phili@Philip-Win10 MINGW64 /c/git-sdk-64/usr/src/git (branch-patterns)
> $ git branch -a -l 'junio/*'

You are asking "branch --all --list" here.

> $ git branch -a -r 'junio/*'
> fatal: -a and -r options to 'git branch' do not make sense with a
> branch name

You wanted to ask "branch --remote --list" instead of "branch --all
--remote", no?