summaryrefslogtreecommitdiff
path: root/Documentation/git-checkout.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-31 21:30:54 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-01-31 21:30:54 (GMT)
commit84a978f11870824dae45c7d0fa612a10f64b3fff (patch)
tree8da890c6816a52acb4eb02387f9912ac0b910d16 /Documentation/git-checkout.txt
parent6e598c326dc4217c387fd797d182dc2ac0a0fc03 (diff)
downloadgit-84a978f11870824dae45c7d0fa612a10f64b3fff.zip
git-84a978f11870824dae45c7d0fa612a10f64b3fff.tar.gz
git-84a978f11870824dae45c7d0fa612a10f64b3fff.tar.bz2
Documentation: "git-checkout <tree> <path>" takes any tree-ish
Especially, it is not limited to branch. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-checkout.txt')
-rw-r--r--Documentation/git-checkout.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index c44a4a8..4ea2b31 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -9,7 +9,7 @@ SYNOPSIS
--------
[verse]
'git-checkout' [-f] [-b <new_branch> [-l]] [-m] [<branch>]
-'git-checkout' [<branch>] <paths>...
+'git-checkout' [<tree-ish>] <paths>...
DESCRIPTION
-----------
@@ -22,11 +22,13 @@ be created.
When <paths> are given, this command does *not* switch
branches. It updates the named paths in the working tree from
-the index file (i.e. it runs `git-checkout-index -f -u`). In
+the index file (i.e. it runs `git-checkout-index -f -u`), or a
+named commit. In
this case, `-f` and `-b` options are meaningless and giving
-either of them results in an error. <branch> argument can be
-used to specify a specific tree-ish to update the index for the
-given paths before updating the working tree.
+either of them results in an error. <tree-ish> argument can be
+used to specify a specific tree-ish (i.e. commit, tag or tree)
+to update the index for the given paths before updating the
+working tree.
OPTIONS