Code

git-checkout.txt: clarify that <branch> applies when no path is given.
[git.git] / Documentation / git-checkout.txt
index 883047982afc7d140ce358747103020b7feb5d4c..19510de151e60c2fad3715d74f9eef89cef9ad0b 100644 (file)
@@ -85,9 +85,13 @@ should result in deletion of the path).
 <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'.