summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f6a32f)
raw | patch | inline | side by side (parent: 4f6a32f)
author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Mon, 6 Apr 2009 20:45:21 +0000 (22:45 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 8 Apr 2009 04:56:41 +0000 (21:56 -0700) |
The command "git checkout" checks out from the index by default, not
HEAD (the introducing comment were correct, but the detailled
explanation added below were not).
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
HEAD (the introducing comment were correct, but the detailled
explanation added below were not).
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-checkout.txt | patch | blob | history |
index 5aa69c0e12a6756fd6f79c117008a373f65ba5f5..883047982afc7d140ce358747103020b7feb5d4c 100644 (file)
------------
+
<1> switch branch
-<2> take out a file out of other commit
-<3> restore hello.c from HEAD of current branch
+<2> take a file out of another commit
+<3> restore hello.c from the index
+
If you have an unfortunate branch that is named `hello.c`, this
step would be confused as an instruction to switch to that branch.