File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ git-checkout(1)
33
44NAME
55----
6- git-checkout - Checkout a branch or paths to the working tree
6+ git-checkout - Switch branches or restore working tree files
77
88SYNOPSIS
99--------
@@ -89,6 +89,10 @@ Omitting <branch> detaches HEAD at the tip of the current branch.
8989 (i.e. commit, tag or tree) to update the index for the given
9090 paths before updating the working tree.
9191+
92+ 'git checkout' with <paths> or `--patch` is used to restore modified or
93+ deleted paths to their original contents from the index or replace paths
94+ with the contents from a named <tree-ish> (most often a commit-ish).
95+ +
9296The index may contain unmerged entries because of a previous failed merge.
9397By default, if you try to check out such an entry from the index, the
9498checkout operation will fail and nothing will be checked out.
You can’t perform that action at this time.
0 commit comments