summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e598c3)
raw | patch | inline | side by side (parent: 6e598c3)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 31 Jan 2007 21:30:54 +0000 (13:30 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 31 Jan 2007 21:30:54 +0000 (13:30 -0800) |
Especially, it is not limited to branch.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-checkout.txt | patch | blob | history |
index c44a4a8004a49e42c01bcd238ae22b8d32b33cc3..4ea2b315d29957a4287d697bf50ab9cfea3a7ef1 100644 (file)
--------
[verse]
'git-checkout' [-f] [-b <new_branch> [-l]] [-m] [<branch>]
-'git-checkout' [<branch>] <paths>...
+'git-checkout' [<tree-ish>] <paths>...
DESCRIPTION
-----------
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