diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-05-29 16:57:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-29 16:57:17 -0700 |
commit | c710296399a86586e3a5e24ea8519ea2442ab7cf (patch) | |
tree | eb0d0bf25b3098a12d15f4a2921f16ecaaa2756f /git-checkout.txt | |
parent | b6595471f5299e8b13181e09072b486dd0ad6261 (diff) | |
download | git-htmldocs-c710296399a86586e3a5e24ea8519ea2442ab7cf.tar.gz |
Autogenerated HTML docs for v1.8.3-101-g727a4
Diffstat (limited to 'git-checkout.txt')
-rw-r--r-- | git-checkout.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git-checkout.txt b/git-checkout.txt index 23a941352..ca118ac6b 100644 --- a/git-checkout.txt +++ b/git-checkout.txt @@ -131,9 +131,9 @@ entries; instead, unmerged entries are ignored. "--track" in linkgit:git-branch[1] for details. + If no '-b' option is given, the name of the new branch will be -derived from the remote-tracking branch. If "remotes/" or "refs/remotes/" -is prefixed it is stripped away, and then the part up to the -next slash (which would be the nickname of the remote) is removed. +derived from the remote-tracking branch, by looking at the local part of +the refspec configured for the corresponding remote, and then stripping +the initial part up to the "*". This would tell us to use "hack" as the local branch when branching off of "origin/hack" (or "remotes/origin/hack", or even "refs/remotes/origin/hack"). If the given name has no slash, or the above |