threads / discuss / 40582

git worktree help inconsistent

Subject: git worktree help inconsistent

## tl;dr

One message between Oct 18, 2015 and Oct 18, 2015.

replies: 0people: 1as markdown or json

乙酸鋰· Oct 18, 2015, 04:10 UTC · lore
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>]

← back to recent threads