Skip to content

Commit 45dfd40

Browse files
jrngitster
authored andcommitted
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>
1 parent 66a062a commit 45dfd40

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Documentation/user-manual.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,13 +367,16 @@ above were created based on the remote branches at clone time and will
367367
be updated by "git fetch" (hence "git pull") and "git push". See
368368
<<Updating-a-repository-With-git-fetch>> for details.
369369

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:
372372

373373
------------------------------------------------
374374
$ git checkout -b my-todo-copy origin/todo
375375
------------------------------------------------
376376

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+
377380
Note that the name "origin" is just the name that git uses by default
378381
to refer to the repository that you cloned from.
379382

0 commit comments

Comments
 (0)