@@ -12,8 +12,8 @@ git checkout [-q] [-f] [-m] [<branch>]
12
12
git checkout [-q] [-f] [-m] -- detach [<branch >]
13
13
git checkout [-q] [-f] [-m] [-- detach] <commit >
14
14
git checkout [-q] [-f] [-m] [[-b|-B|-- orphan] <new-branch >] [<start-point >]
15
- git checkout [-f] <tree-ish > [-- ] <pathspec >...
16
- git checkout [-f] <tree-ish > -- pathspec-from-file=<file > [-- pathspec-file-nul]
15
+ git checkout <tree-ish > [-- ] <pathspec >...
16
+ git checkout <tree-ish > -- pathspec-from-file=<file > [-- pathspec-file-nul]
17
17
git checkout [-f|-- ours|-- theirs|-m|-- conflict=<style >] [-- ] <pathspec> ...
18
18
git checkout [-f |--ours |--theirs |-m |--conflict = <style> ] --pathspec-from-file=<file> [--pathspec-file-nul ]
19
19
git checkout (-p |--patch) [<tree-ish>] [-- ] [<pathspec>...]
@@ -71,14 +71,17 @@ commit would overwrite your uncommitted changes.
71
71
+
72
72
Omitting _<branch> _ detaches `HEAD` at the tip of the current branch.
73
73
74
- `git checkout [ -f | --ours | --theirs | -m | --conflict = <style> ] [< tree-ish>] [-- ] <pathspec> ...` ::
75
- `git checkout [ -f | --ours | --theirs | -m | --conflict = <style> ] [< tree-ish>] --pathspec-from-file=<file> [--pathspec-file-nul ]`::
74
+ `git checkout < tree-ish > [-- ] <pathspec> ...` ::
75
+ `git checkout < tree-ish > --pathspec-from-file=<file> [--pathspec-file-nul ]`::
76
76
77
- Overwrite the contents of the files that match the pathspec.
78
- When the _<tree-ish > _ (most often a commit) is not given,
79
- overwrite working tree with the contents in the index.
80
- When the _<tree-ish > _ is given, overwrite both the index and
81
- the working tree with the contents at the _<tree-ish > _.
77
+ Overwrite both the index and the working tree with the
78
+ contents at the _<tree-ish > _ for the files that match the pathspec.
79
+
80
+ `git checkout [-f |--ours |--theirs |-m |--conflict = <style> ] [-- ] <pathspec> ...` ::
81
+ `git checkout [-f |--ours |--theirs |-m |--conflict = <style> ] --pathspec-from-file=<file> [--pathspec-file-nul ]`::
82
+
83
+ Overwrite working tree with the contents in the index for the files
84
+ that match the pathspec.
82
85
+
83
86
The index may contain unmerged entries because of a previous failed merge.
84
87
By default, if you try to check out such an entry from the index, the
@@ -89,7 +92,7 @@ using `--ours` or `--theirs`. With `-m`, changes made to the working tree
89
92
file can be discarded to re-create the original conflicted merge result.
90
93
91
94
`git checkout (-p |--patch) [<tree-ish>] [-- ] [<pathspec>...]`::
92
- This is similar to the previous mode , but lets you use the
95
+ This is similar to the previous two modes , but lets you use the
93
96
interactive interface to show the "diff" output and choose which
94
97
hunks to use in the result. See below for the description of
95
98
`--patch` option .
0 commit comments