File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ include::pull-fetch-param.txt[]
51
51
include::urls-remotes.txt[]
52
52
53
53
54
- CONFIGURED REMOTE-TRACKING BRANCHES
55
- -----------------------------------
54
+ CONFIGURED REMOTE-TRACKING BRANCHES[[CRTB]]
55
+ -------------------------------------------
56
56
57
57
You often interact with the same remote repository by
58
58
regularly and repeatedly fetching from it. In order to keep track
Original file line number Diff line number Diff line change @@ -12,10 +12,20 @@ ifndef::git-pull[]
12
12
endif::git-pull[]
13
13
14
14
<refspec>::
15
- The format of a <refspec> parameter is an optional plus
16
- `+`, followed by the source ref <src>, followed
17
- by a colon `:`, followed by the destination ref <dst>.
18
- The colon can be omitted when <dst> is empty.
15
+ Specifies which refs to fetch and which local refs to update.
16
+ When no <refspec>s appear on the command line, the refs to fetch
17
+ are read from `remote.<repository>.fetch` variables instead
18
+ ifndef::git-pull[]
19
+ (see <<CRTB,CONFIGURED REMOTE-TRACKING BRANCHES>> below).
20
+ endif::git-pull[]
21
+ ifdef::git-pull[]
22
+ (see linkgit:git-fetch[1]).
23
+ endif::git-pull[]
24
+ +
25
+ The format of a <refspec> parameter is an optional plus
26
+ `+`, followed by the source ref <src>, followed
27
+ by a colon `:`, followed by the destination ref <dst>.
28
+ The colon can be omitted when <dst> is empty.
19
29
+
20
30
`tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`;
21
31
it requests fetching everything up to the given tag.
You can’t perform that action at this time.
0 commit comments