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> --- Documentation/git-checkout.txt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 1a6c19e..0b5485b 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -191,7 +191,7 @@ $ git checkout hello.c <3> + <1> switch branch <2> take a file out of another commit -<3> restore hello.c from HEAD of current branch +<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. -- 1.6.2.1.427.g061ea -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Renato S. Yamane | Error -71 on device descriptor read/all |
| David Miller | Slow DOWN, please!!! |
| David Woodhouse | [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in more dr... |
| Kenny Chang | Multicast packet loss |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
| Kok, Auke | Re: [PATCH] Add eeprom_bad_csum_allow module option to e1000. |
| David Miller | Re: [GIT]: Networking |
git: | |
