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

[PATCH] Reverse the order of -b and --track in the man page.

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Apr 23, 2007, 23:56 UTC
Message-ID
<20070423235645.GA197@Hermes.local>
Using "-b --track newbranch oldbranch" gives the error:
  git checkout: updating paths is incompatible with switching
  branches/forcing
However, "--track -b ..." works just fine.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
---
 Documentation/git-checkout.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index 4f2e847..918d8ee 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -8,7 +8,7 @@ git-checkout - Checkout and switch to a branch
 SYNOPSIS
 --------
 [verse]
-'git-checkout' [-q] [-f] [-b [--track | --no-track] <new_branch> [-l]] [-m] [<branch>]
+'git-checkout' [-q] [-f] [[--track | --no-track] -b <new_branch> [-l]] [-m] [<branch>]
 'git-checkout' [<tree-ish>] <paths>...
 
 DESCRIPTION
-- 
1.5.2.rc0.1.g2cc31
Message 1 of 1 in “Reverse the order of -b and --track in the man page.”
  1. Reverse the order of -b and --track in the man page.Brian Gernhardt, Apr 23, 2007

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.