# git worktree help inconsistent

1 messages from 2015-10-18 to 2015-10-18. Participants: 乙酸鋰.
Thread: https://gitlist.dev/t/40582

## 乙酸鋰, 2015-10-18 04:10

Subject: git worktree help inconsistent
Message-ID: <CAHtLG6S6VZLRhqEzHF6Qt+-NnqT3M_Spnk7UbRo1jxDb8NUGoQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAHtLG6S6VZLRhqEzHF6Qt%2B-NnqT3M_Spnk7UbRo1jxDb8NUGoQ%40mail.gmail.com

```
Using git 2.6.1

In git command line usage, Please mark <branch> optional, the man page
is correct.

$ git worktree add
usage: git worktree add [<options>] <path> <branch>
   or: git worktree prune [<options>]

    -f, --force           checkout <branch> even if already checked
out in other worktree
    -b <branch>           create a new branch
    -B <branch>           create or reset a branch
    --detach              detach HEAD at named commit

But in man page,
git worktree add [-f] [--detach] [-b <new-branch>] <path> [<branch>]
git worktree prune [-n] [-v] [--expire <expire>]

```
