Browse Source

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>
maint
Junio C Hamano 18 years ago
parent
commit
84a978f118
  1. 12
      Documentation/git-checkout.txt

12
Documentation/git-checkout.txt

@ -9,7 +9,7 @@ SYNOPSIS
-------- --------
[verse] [verse]
'git-checkout' [-f] [-b <new_branch> [-l]] [-m] [<branch>] 'git-checkout' [-f] [-b <new_branch> [-l]] [-m] [<branch>]
'git-checkout' [<branch>] <paths>... 'git-checkout' [<tree-ish>] <paths>...


DESCRIPTION DESCRIPTION
----------- -----------
@ -22,11 +22,13 @@ be created.


When <paths> are given, this command does *not* switch When <paths> are given, this command does *not* switch
branches. It updates the named paths in the working tree from 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 this case, `-f` and `-b` options are meaningless and giving
either of them results in an error. <branch> argument can be either of them results in an error. <tree-ish> argument can be
used to specify a specific tree-ish to update the index for the used to specify a specific tree-ish (i.e. commit, tag or tree)
given paths before updating the working tree. to update the index for the given paths before updating the
working tree.




OPTIONS OPTIONS

Loading…
Cancel
Save