Merge branch 'pb/pull-fetch-doc'

The more aggressive updates to remote-tracking branches we had for
the past 7 years or so were not reflected in the documentation,
which has been corrected.

* pb/pull-fetch-doc:
  pull doc: correct outdated description of an example
  pull doc: refer to a specific section in 'fetch' doc
This commit is contained in:
Junio C Hamano
2020-04-22 13:42:53 -07:00
2 changed files with 5 additions and 4 deletions

View File

@ -229,9 +229,9 @@ branch.<name>.merge options; see linkgit:git-config[1] for details.
$ git pull origin next $ git pull origin next
------------------------------------------------ ------------------------------------------------
+ +
This leaves a copy of `next` temporarily in FETCH_HEAD, but This leaves a copy of `next` temporarily in FETCH_HEAD, and
does not update any remote-tracking branches. Using remote-tracking updates the remote-tracking branch `origin/next`.
branches, the same can be done by invoking fetch and merge: The same can be done by invoking fetch and merge:
+ +
------------------------------------------------ ------------------------------------------------
$ git fetch origin $ git fetch origin

View File

@ -19,7 +19,8 @@ ifndef::git-pull[]
(see <<CRTB,CONFIGURED REMOTE-TRACKING BRANCHES>> below). (see <<CRTB,CONFIGURED REMOTE-TRACKING BRANCHES>> below).
endif::git-pull[] endif::git-pull[]
ifdef::git-pull[] ifdef::git-pull[]
(see linkgit:git-fetch[1]). (see the section "CONFIGURED REMOTE-TRACKING BRANCHES"
in linkgit:git-fetch[1]).
endif::git-pull[] endif::git-pull[]
+ +
The format of a <refspec> parameter is an optional plus The format of a <refspec> parameter is an optional plus