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