summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ce8936c)
raw | patch | inline | side by side (parent: ce8936c)
author | Matthieu Moy <Matthieu.Moy@imag.fr> | |
Tue, 7 Apr 2009 12:43:53 +0000 (14:43 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 8 Apr 2009 04:57:12 +0000 (21:57 -0700) |
Otherwise, the sentence "Defaults to HEAD." can be mis-read to mean
that "git checkout -- hello.c" checks-out from HEAD.
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
that "git checkout -- hello.c" checks-out from HEAD.
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 883047982afc7d140ce358747103020b7feb5d4c..19510de151e60c2fad3715d74f9eef89cef9ad0b 100644 (file)
<new_branch>::
Name for the new branch.
+<tree-ish>::
+ Tree to checkout from (when paths are given). If not specified,
+ the index will be used.
+
<branch>::
- Branch to checkout; may be any object ID that resolves to a
- commit. Defaults to HEAD.
+ Branch to checkout (when no paths are given); may be any object
+ ID that resolves to a commit. Defaults to HEAD.
+
When this parameter names a non-branch (but still a valid commit object),
your HEAD becomes 'detached'.