From: Jonathan Nieder Date: Tue, 19 Oct 2010 19:04:16 GMT Subject: User manual: "You cannot check out these remote-tracking branches" Message-ID: <20101019190416.GH25139@burratino> In-Reply-To: <0B20EFC4-E613-4D4A-B4F8-8B1750AA8AFD@gmail.com> Thore Husfeldt wrote: > Also, in the user-manual.txt: [...] >> origin/todo >> ------------------------------------------------ >> >> 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: > > That’s just wrong, isn’t it? That's historical baggage, I'm afraid. Signed-off-by: Jonathan Nieder --- diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt index 77eb483..9f82fa6 100644 --- a/Documentation/user-manual.txt +++ b/Documentation/user-manual.txt @@ -359,13 +359,16 @@ $ git branch -r origin/todo ------------------------------------------------ -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 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.