@@ -11,7 +11,7 @@ SYNOPSIS
1111'git checkout' [-q] [-f] [-m] [<branch>]
1212'git checkout' [-q] [-f] [-m] --detach [<branch>]
1313'git checkout' [-q] [-f] [-m] [--detach] <commit>
14- 'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] <new_branch >] [<start_point >]
14+ 'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] <new-branch >] [<start-point >]
1515'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <pathspec>...
1616'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] --pathspec-from-file=<file> [--pathspec-file-nul]
1717'git checkout' (-p|--patch) [<tree-ish>] [--] [<pathspec>...]
@@ -43,7 +43,7 @@ You could omit `<branch>`, in which case the command degenerates to
4343rather expensive side-effects to show only the tracking information,
4444if exists, for the current branch.
4545
46- 'git checkout' -b|-B <new_branch > [<start point>]::
46+ 'git checkout' -b|-B <new-branch > [<start- point>]::
4747
4848 Specifying `-b` causes a new branch to be created as if
4949 linkgit:git-branch[1] were called and then checked out. In
@@ -52,11 +52,11 @@ if exists, for the current branch.
5252 `--track` without `-b` implies branch creation; see the
5353 description of `--track` below.
5454+
55- If `-B` is given, `<new_branch >` is created if it doesn't exist; otherwise, it
55+ If `-B` is given, `<new-branch >` is created if it doesn't exist; otherwise, it
5656is reset. This is the transactional equivalent of
5757+
5858------------
59- $ git branch -f <branch> [<start point>]
59+ $ git branch -f <branch> [<start- point>]
6060$ git checkout <branch>
6161------------
6262+
@@ -144,13 +144,13 @@ as `ours` (i.e. "our shared canonical history"), while what you did
144144on your side branch as `theirs` (i.e. "one contributor's work on top
145145of it").
146146
147- -b <new_branch >::
148- Create a new branch named `<new_branch >` and start it at
149- `<start_point >`; see linkgit:git-branch[1] for details.
147+ -b <new-branch >::
148+ Create a new branch named `<new-branch >` and start it at
149+ `<start-point >`; see linkgit:git-branch[1] for details.
150150
151- -B <new_branch >::
152- Creates the branch `<new_branch >` and start it at `<start_point >`;
153- if it already exists, then reset it to `<start_point >`. This is
151+ -B <new-branch >::
152+ Creates the branch `<new-branch >` and start it at `<start-point >`;
153+ if it already exists, then reset it to `<start-point >`. This is
154154 equivalent to running "git branch" with "-f"; see
155155 linkgit:git-branch[1] for details.
156156
@@ -209,16 +209,16 @@ variable.
209209 `<commit>` is not a branch name. See the "DETACHED HEAD" section
210210 below for details.
211211
212- --orphan <new_branch >::
213- Create a new 'orphan' branch, named `<new_branch >`, started from
214- `<start_point >` and switch to it. The first commit made on this
212+ --orphan <new-branch >::
213+ Create a new 'orphan' branch, named `<new-branch >`, started from
214+ `<start-point >` and switch to it. The first commit made on this
215215 new branch will have no parents and it will be the root of a new
216216 history totally disconnected from all the other branches and
217217 commits.
218218+
219219The index and the working tree are adjusted as if you had previously run
220- `git checkout <start_point >`. This allows you to start a new history
221- that records a set of paths similar to `<start_point >` by easily running
220+ `git checkout <start-point >`. This allows you to start a new history
221+ that records a set of paths similar to `<start-point >` by easily running
222222`git commit -a` to make the root commit.
223223+
224224This can be useful when you want to publish the tree from a commit
@@ -228,7 +228,7 @@ whose full history contains proprietary or otherwise encumbered bits of
228228code.
229229+
230230If you want to start a disconnected history that records a set of paths
231- that is totally different from the one of `<start_point >`, then you should
231+ that is totally different from the one of `<start-point >`, then you should
232232clear the index and the working tree right after creating the orphan
233233branch by running `git rm -rf .` from the top level of the working tree.
234234Afterwards you will be ready to prepare your new files, repopulating the
@@ -340,10 +340,10 @@ As a special case, you may use `A...B` as a shortcut for the
340340merge base of `A` and `B` if there is exactly one merge base. You can
341341leave out at most one of `A` and `B`, in which case it defaults to `HEAD`.
342342
343- <new_branch >::
343+ <new-branch >::
344344 Name for the new branch.
345345
346- <start_point >::
346+ <start-point >::
347347 The name of a commit at which to start the new branch; see
348348 linkgit:git-branch[1] for details. Defaults to `HEAD`.
349349+
0 commit comments