Browse Source

Merge branch 'ab/branch-list-doc'

Doc update.

* ab/branch-list-doc:
  branch doc: update description for `--list`
  branch doc: change `git branch <pattern>` to use `<branchname>`
maint
Junio C Hamano 8 years ago
parent
commit
e779b0f070
  1. 9
      Documentation/git-branch.txt

9
Documentation/git-branch.txt

@ -142,8 +142,13 @@ This option is only applicable in non-verbose mode. @@ -142,8 +142,13 @@ This option is only applicable in non-verbose mode.
List both remote-tracking branches and local branches.

--list::
Activate the list mode. `git branch <pattern>` would try to create a branch,
use `git branch --list <pattern>` to list matching branches.
List branches. With optional `<pattern>...`, e.g. `git
branch --list 'maint-*'`, list only the branches that match
the pattern(s).
+
This should not be confused with `git branch -l <branchname>`,
which creates a branch named `<branchname>` with a reflog.
See `--create-reflog` above for details.

-v::
-vv::

Loading…
Cancel
Save