From: Jonathan Nieder Date: Tue, 2 Nov 2010 15:31:27 +0000 (+0100) Subject: user-manual: remote-tracking can be checked out, with detached HEAD X-Git-Tag: v1.7.4-rc0~122^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=45dfd40396b47720387c31c4140eb3aebdf06cf7;p=git.git user-manual: remote-tracking can be checked out, with detached HEAD Signed-off-by: Jonathan Nieder Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano --- 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 <> 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 <>. + Note that the name "origin" is just the name that git uses by default to refer to the repository that you cloned from.