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