docs: Explain the purpose of fetch's and pull's <refspec> parameter.
Signed-off-by: Marc Branchaud <marcnarc@xiplink.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
c5558f80c3
commit
db4e4113ea
|
@ -51,8 +51,8 @@ include::pull-fetch-param.txt[]
|
||||||
include::urls-remotes.txt[]
|
include::urls-remotes.txt[]
|
||||||
|
|
||||||
|
|
||||||
CONFIGURED REMOTE-TRACKING BRANCHES
|
CONFIGURED REMOTE-TRACKING BRANCHES[[CRTB]]
|
||||||
-----------------------------------
|
-------------------------------------------
|
||||||
|
|
||||||
You often interact with the same remote repository by
|
You often interact with the same remote repository by
|
||||||
regularly and repeatedly fetching from it. In order to keep track
|
regularly and repeatedly fetching from it. In order to keep track
|
||||||
|
|
|
@ -12,6 +12,16 @@ ifndef::git-pull[]
|
||||||
endif::git-pull[]
|
endif::git-pull[]
|
||||||
|
|
||||||
<refspec>::
|
<refspec>::
|
||||||
|
Specifies which refs to fetch and which local refs to update.
|
||||||
|
When no <refspec>s appear on the command line, the refs to fetch
|
||||||
|
are read from `remote.<repository>.fetch` variables instead
|
||||||
|
ifndef::git-pull[]
|
||||||
|
(see <<CRTB,CONFIGURED REMOTE-TRACKING BRANCHES>> below).
|
||||||
|
endif::git-pull[]
|
||||||
|
ifdef::git-pull[]
|
||||||
|
(see linkgit:git-fetch[1]).
|
||||||
|
endif::git-pull[]
|
||||||
|
+
|
||||||
The format of a <refspec> parameter is an optional plus
|
The format of a <refspec> parameter is an optional plus
|
||||||
`+`, followed by the source ref <src>, followed
|
`+`, followed by the source ref <src>, followed
|
||||||
by a colon `:`, followed by the destination ref <dst>.
|
by a colon `:`, followed by the destination ref <dst>.
|
||||||
|
|
Loading…
Reference in New Issue