git-checkout.txt: fix incorrect statement about HEAD and index
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>
Matthieu Moy committed
Apr 6, 2009 at 22:45 UTC
ce8936c342a15a08029c71fdc92e283e3624bc18
1 file changed
+2
-2
Documentation/git-checkout.txt
+2
-2
@@ -145,8 +145,8 @@ $ git checkout hello.c <3>
145
------------
146
+
147
<1> switch branch
148
-<2> take out a file out of other commit
149
-<3> restore hello.c from HEAD of current branch
148
+<2> take a file out of another commit
149
+<3> restore hello.c from the index
150
+
151
If you have an unfortunate branch that is named `hello.c`, this
152
step would be confused as an instruction to switch to that branch.