]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/fetch-options.txt
gitweb: pull ref markes pull out of subject <a> element
[thirdparty/git.git] / Documentation / fetch-options.txt
CommitLineData
3240240f
SB
1-q::
2--quiet::
42905294 3 Pass --quiet to git-fetch-pack and silence any other internally
57f6ec02 4 used git commands.
42905294 5
3240240f
SB
6-v::
7--verbose::
42905294
AR
8 Be verbose.
9
3240240f
SB
10-a::
11--append::
93d69d86
JL
12 Append ref names and object names of fetched refs to the
13 existing contents of `.git/FETCH_HEAD`. Without this
14 option old data in `.git/FETCH_HEAD` will be overwritten.
15
3240240f 16--upload-pack <upload-pack>::
42905294
AR
17 When given, and the repository to fetch from is handled
18 by 'git-fetch-pack', '--exec=<upload-pack>' is passed to
19 the command to specify non-default path for the command
20 run on the other end.
2c620a1a 21
3240240f
SB
22-f::
23--force::
ba020ef5 24 When 'git-fetch' is used with `<rbranch>:<lbranch>`
a3e3dc46
JH
25 refspec, it refuses to update the local branch
26 `<lbranch>` unless the remote branch `<rbranch>` it
27 fetches is a descendant of `<lbranch>`. This option
28 overrides that check.
93d69d86 29
10eb64f5 30ifdef::git-pull[]
3240240f 31--no-tags::
10eb64f5
MV
32endif::git-pull[]
33ifndef::git-pull[]
3240240f
SB
34-n::
35--no-tags::
10eb64f5
MV
36endif::git-pull[]
37 By default, tags that point at objects that are downloaded
38 from the remote repository are fetched and stored locally.
39 This option disables this automatic tag following.
03febf99 40
3240240f
SB
41-t::
42--tags::
03febf99
JH
43 Most of the tags are fetched automatically as branch
44 heads are downloaded, but tags that do not point at
45 objects reachable from the branch heads that are being
46 tracked will not be fetched by this mechanism. This
47 flag lets all tags and their associated objects be
48 downloaded.
93d69d86 49
3240240f
SB
50-k::
51--keep::
0f76f526
TP
52 Keep downloaded pack.
53
3240240f
SB
54-u::
55--update-head-ok::
ba020ef5 56 By default 'git-fetch' refuses to update the head which
93d69d86 57 corresponds to the current branch. This flag disables the
ba020ef5
JN
58 check. This is purely for the internal use for 'git-pull'
59 to communicate with 'git-fetch', and unless you are
a597fb0e
JH
60 implementing your own Porcelain you are not supposed to
61 use it.
03febf99 62
3240240f 63--depth=<depth>::
f4bf2184 64 Deepen the history of a 'shallow' repository created by
5162e697 65 `git clone` with `--depth=<depth>` option (see linkgit:git-clone[1])
f4bf2184 66 by the specified number of commits.