git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git worktree help inconsistent

From
乙酸鋰 <ch3cooli@gmail.com>
Date
Oct 18, 2015, 04:10 UTC
Message-ID
<CAHtLG6S6VZLRhqEzHF6Qt+-NnqT3M_Spnk7UbRo1jxDb8NUGoQ@mail.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>]

Message 1 of 1 in “git worktree help inconsistent”
  1. 乙酸鋰Oct 18, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.