@@ -8,8 +8,8 @@ git-pull - Fetch from and integrate with another repository or a local branch
88
99SYNOPSIS
1010--------
11- [verse ]
12- ' git pull' [<options >] [<repository > [<refspec >... ]]
11+ [synopsis ]
12+ git pull [<options >] [<repository > [<refspec >... ]]
1313
1414
1515DESCRIPTION
@@ -43,7 +43,7 @@ want to handle, you can safely abort it with `git merge --abort` or `git
4343OPTIONS
4444-------
4545
46- <repository >::
46+ _ <repository>_ ::
4747 The "remote" repository to pull from. This can be either
4848 a URL (see the section <<URLS,GIT URLS>> below) or the name
4949 of a remote (see the section <<REMOTES,REMOTES>> below).
@@ -52,29 +52,29 @@ Defaults to the configured upstream for the current branch, or `origin`.
5252See <<UPSTREAM-BRANCHES,UPSTREAM BRANCHES>> below for more on how to
5353configure upstreams.
5454
55- <refspec >::
55+ _ <refspec>_ ::
5656 Which branch or other reference(s) to fetch and integrate into the
5757 current branch, for example `main` in `git pull origin main` .
5858 Defaults to the configured upstream for the current branch.
5959+
6060This can be a branch, tag, or other collection of reference(s).
61- See <<fetch-refspec,<refspec>>> below under "Options related to fetching"
61+ See <<fetch-refspec,_ <refspec>_ >> below under "Options related to fetching"
6262for the full syntax, and <<DEFAULT-BEHAVIOUR,DEFAULT BEHAVIOUR>> below
6363for how `git pull` uses this argument to determine which remote branch
6464to integrate.
6565
66- -q ::
67- -- quiet::
66+ `-q` ::
67+ ` --quiet` ::
6868 This is passed to both underlying git-fetch to squelch reporting of
6969 during transfer, and underlying git-merge to squelch output during
7070 merging.
7171
72- -v ::
73- -- verbose::
74- Pass -- verbose to git-fetch and git-merge.
72+ `-v` ::
73+ ` --verbose` ::
74+ Pass ` --verbose` to git-fetch and git-merge.
7575
76- -- recurse-submodules[=(yes|on-demand|no)]::
77- -- no-recurse-submodules::
76+ ` --recurse-submodules[=(yes|on-demand|no)]` ::
77+ ` --no-recurse-submodules` ::
7878 This option controls if new commits of populated submodules should
7979 be fetched, and if the working trees of active submodules should be
8080 updated, too (see linkgit:git-fetch[1], linkgit:git-config[1] and
@@ -91,21 +91,20 @@ Options related to merging
9191
9292include::merge-options.adoc[]
9393
94- -r ::
95- -- rebase[=(false| true|merges|interactive)]::
96- When true, rebase the current branch on top of the upstream
94+ `-r` ::
95+ ` --rebase[=(true|merges|false| interactive)]` ::
96+ ` true` ;; rebase the current branch on top of the upstream
9797 branch after fetching. If there is a remote-tracking branch
9898 corresponding to the upstream branch and the upstream branch
9999 was rebased since last fetched, the rebase uses that information
100- to avoid rebasing non-local changes.
101- +
102- When set to `merges` , rebase using `git rebase --rebase-merges` so that
100+ to avoid rebasing non-local changes. This is the default.
101+
102+ `merges` ;; rebase using `git rebase --rebase-merges` so that
103103the local merge commits are included in the rebase (see
104104linkgit:git-rebase[1] for details).
105- +
106- When false, merge the upstream branch into the current branch.
107- +
108- When `interactive` , enable the interactive mode of rebase.
105+ `false` ;; merge the upstream branch into the current branch.
106+ `interactive` ;; enable the interactive mode of rebase.
107+
109108+
110109 See `pull.rebase` , `branch.<name>.rebase` and `branch.autoSetupRebase` in
111110linkgit:git-config[1] if you want to make `git pull` always use
@@ -117,8 +116,8 @@ It rewrites history, which does not bode well when you
117116published that history already. Do *not* use this option
118117unless you have read linkgit:git-rebase[1] carefully.
119118
120- -- no-rebase::
121- This is shorthand for -- rebase=false.
119+ ` --no-rebase` ::
120+ This is shorthand for ` --rebase=false` .
122121
123122Options related to fetching
124123~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -178,7 +177,7 @@ uses the refspec from the configuration or
178177rules apply:
179178
180179. If `branch.<name>.merge` configuration for the current
181- branch ` <name>` exists, that is the name of the branch at the
180+ branch _ <name>_ exists, that is the name of the branch at the
182181 remote site that is merged.
183182
184183. If the refspec is a globbing one, nothing is merged.
@@ -198,17 +197,17 @@ $ git pull
198197$ git pull origin
199198------------------------------------------------
200199+
201- Normally the branch merged in is the HEAD of the remote repository,
202- but the choice is determined by the branch.<name>.remote and
203- branch.<name>.merge options; see linkgit:git-config[1] for details.
200+ Normally the branch merged in is the ` HEAD` of the remote repository,
201+ but the choice is determined by the ` branch.<name>.remote` and
202+ ` branch.<name>.merge` options; see linkgit:git-config[1] for details.
204203
205204* Merge into the current branch the remote branch `next` :
206205+
207206------------------------------------------------
208207$ git pull origin next
209208------------------------------------------------
210209+
211- This leaves a copy of `next` temporarily in FETCH_HEAD, and
210+ This leaves a copy of `next` temporarily in ` FETCH_HEAD` , and
212211updates the remote-tracking branch `origin/next` .
213212The same can be done by invoking fetch and merge:
214213+
@@ -219,14 +218,14 @@ $ git merge origin/next
219218
220219
221220 If you tried a pull which resulted in complex conflicts and
222- would want to start over, you can recover with ' git reset' .
221+ would want to start over, you can recover with ` git reset` .
223222
224223
225224include::transfer-data-leaks.adoc[]
226225
227226BUGS
228227----
229- Using -- recurse-submodules can only fetch new commits in already checked
228+ Using ` --recurse-submodules` can only fetch new commits in already checked
230229out submodules right now. When e.g. upstream added a new submodule in the
231230just fetched commits of the superproject the submodule itself cannot be
232231fetched, making it impossible to check out that submodule later without
0 commit comments