aboutsummaryrefslogtreecommitdiff
path: root/Documentation/user-manual.txt
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-11-02 16:31:27 +0100
committerJunio C Hamano <gitster@pobox.com>2010-11-03 09:20:48 -0700
commit45dfd40396b47720387c31c4140eb3aebdf06cf7 (patch)
treef7c6d2b05416b2011ef6c7d6a9aadaa68031b37a /Documentation/user-manual.txt
parent66a062a1259000669cec0a8105a807a67b9287ef (diff)
downloadgit-45dfd40396b47720387c31c4140eb3aebdf06cf7.tar.gz
git-45dfd40396b47720387c31c4140eb3aebdf06cf7.tar.xz
user-manual: remote-tracking can be checked out, with detached HEAD
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/user-manual.txt')
-rw-r--r--Documentation/user-manual.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
index 85b3175ff..f13a84613 100644
--- a/Documentation/user-manual.txt
+++ b/Documentation/user-manual.txt
@@ -367,13 +367,16 @@ above were created based on the remote branches at clone time and will
be updated by "git fetch" (hence "git pull") and "git push". See
<<Updating-a-repository-With-git-fetch>> for details.
-You cannot check out these remote-tracking branches, but you can
-examine them on a branch of your own, just as you would a tag:
+You might want to build on one of these remote-tracking branches
+on a branch of your own, just as you would for a tag:
------------------------------------------------
$ git checkout -b my-todo-copy origin/todo
------------------------------------------------
+You can also check out "origin/todo" directly to examine it or
+write a one-off patch. See <<detached-head,detached head>>.
+
Note that the name "origin" is just the name that git uses by default
to refer to the repository that you cloned from.