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)
3
3
4
4
NAME
5
5
----
6
- git-checkout - Checkout a branch or paths to the working tree
6
+ git-checkout - Switch branches or restore working tree files
7
7
8
8
SYNOPSIS
9
9
--------
@@ -89,6 +89,10 @@ Omitting <branch> detaches HEAD at the tip of the current branch.
89
89
(i.e. commit, tag or tree) to update the index for the given
90
90
paths before updating the working tree.
91
91
+
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
+ +
92
96
The index may contain unmerged entries because of a previous failed merge.
93
97
By default, if you try to check out such an entry from the index, the
94
98
checkout operation will fail and nothing will be checked out.
You can’t perform that action at this time.
0 commit comments