Skip to content

Commit b710830

Browse files
J. Bruce FieldsJunio C Hamano
authored andcommitted
Documentation: clarify track/no-track option.
Fix the description of the --no-track option so it no longer says the opposite of what was intended. Also mention branch.autosetupmerge explicitly. Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 40c8279 commit b710830

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Documentation/git-checkout.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,17 @@ OPTIONS
4949

5050
--track::
5151
When -b is given and a branch is created off a remote branch,
52-
setup so that git-pull will automatically retrieve data from
53-
the remote branch.
52+
set up configuration so that git-pull will automatically
53+
retrieve data from the remote branch. Set the
54+
branch.autosetupmerge configuration variable to true if you
55+
want git-checkout and git-branch to always behave as if
56+
'--track' were given.
5457

5558
--no-track::
5659
When -b is given and a branch is created off a remote branch,
57-
force that git-pull will automatically retrieve data from
58-
the remote branch independent of the configuration settings.
60+
set up configuration so that git-pull will not retrieve data
61+
from the remote branch, ignoring the branch.autosetupmerge
62+
configuration variable.
5963

6064
-l::
6165
Create the new branch's ref log. This activates recording of

0 commit comments

Comments
 (0)