@matheusbsbs / matheus-bagliano / commits / 45dfd40396
Fork 0

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>

Jonathan Nieder committed Nov 2, 2010 at 16:31 UTC 45dfd40396b47720387c31c4140eb3aebdf06cf7
1 file changed +5 -2
Documentation/user-manual.txt
+5 -2
@@ -367,13 +367,16 @@ above were created based on the remote branches at clone time and will
367 be updated by "git fetch" (hence "git pull") and "git push". See
368 <<Updating-a-repository-With-git-fetch>> for details.
369
370 -You cannot check out these remote-tracking branches, but you can
371 -examine them on a branch of your own, just as you would a tag:
370 +You might want to build on one of these remote-tracking branches
371 +on a branch of your own, just as you would for a tag:
372
373 ------------------------------------------------
374 $ git checkout -b my-todo-copy origin/todo
375 ------------------------------------------------
376
377 +You can also check out "origin/todo" directly to examine it or
378 +write a one-off patch. See <<detached-head,detached head>>.
379 +
380 Note that the name "origin" is just the name that git uses by default
381 to refer to the repository that you cloned from.
382