summaryrefslogtreecommitdiffstats
path: root/git-branch.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-01-20 16:16:11 -0800
committerJunio C Hamano <gitster@pobox.com>2022-01-20 16:16:11 -0800
commit1abf8e880de22795d0f5e3336241c3eded33de99 (patch)
tree14b36434d6ec791db0fbd08bea76be031e2341a6 /git-branch.txt
parent29034adaee3e9bab6a318e9b4683081b29b8b3b7 (diff)
downloadgit-htmldocs-1abf8e880de22795d0f5e3336241c3eded33de99.tar.gz
Autogenerated HTML docs for v2.35.0-rc2-2-g297ca
Diffstat (limited to 'git-branch.txt')
-rw-r--r--git-branch.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/git-branch.txt b/git-branch.txt
index 2d52ae396..731e340cb 100644
--- a/git-branch.txt
+++ b/git-branch.txt
@@ -16,7 +16,7 @@ SYNOPSIS
[--points-at <object>] [--format=<format>]
[(-r | --remotes) | (-a | --all)]
[--list] [<pattern>...]
-'git branch' [--track [direct|inherit] | --no-track] [-f] <branchname> [<start-point>]
+'git branch' [--track[=(direct|inherit)] | --no-track] [-f] <branchname> [<start-point>]
'git branch' (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>]
'git branch' --unset-upstream [<branchname>]
'git branch' (-m | -M) [<oldbranch>] <newbranch>
@@ -206,7 +206,7 @@ This option is only applicable in non-verbose mode.
Display the full sha1s in the output listing rather than abbreviating them.
-t::
---track [inherit|direct]::
+--track[=(direct|inherit)]::
When creating a new branch, set up `branch.<name>.remote` and
`branch.<name>.merge` configuration entries to set "upstream" tracking
configuration for the new branch. This
@@ -216,11 +216,11 @@ This option is only applicable in non-verbose mode.
upstream when the new branch is checked out.
+
The exact upstream branch is chosen depending on the optional argument:
-`--track` or `--track direct` means to use the start-point branch itself as the
-upstream; `--track inherit` means to copy the upstream configuration of the
-start-point branch.
+`-t`, `--track`, or `--track=direct` means to use the start-point branch
+itself as the upstream; `--track=inherit` means to copy the upstream
+configuration of the start-point branch.
+
-`--track direct` is the default when the start point is a remote-tracking branch.
+`--track=direct` is the default when the start point is a remote-tracking branch.
Set the branch.autoSetupMerge configuration variable to `false` if you
want `git switch`, `git checkout` and `git branch` to always behave as if `--no-track`
were given. Set it to `always` if you want this behavior when the