Skip to contentSkip to conversation

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

PATCH New Brian Gernhardt 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Reverse the order of -b and --track in the man page.

Using "-b --track newbranch oldbranch" gives the error:

git checkout: updating paths is incompatible with switching branches/forcing

However, "--track -b ..." works just fine.

---
 Documentation/git-checkout.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/git-checkout.txt +1 -1
index 4f2e847..918d8ee 100644
@@ -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
Signature · 1 line
1.5.2.rc0.1.g2cc31