]>
Commit | Line | Data |
---|---|---|
3240240f SB |
1 | -q:: |
2 | --quiet:: | |
42905294 AR |
3 | Pass --quiet to git-fetch-pack and silence any other internally |
4 | used programs. | |
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:: | |
a3e3dc46 JH |
24 | When `git-fetch` is used with `<rbranch>:<lbranch>` |
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 | 30 | ifdef::git-pull[] |
3240240f | 31 | --no-tags:: |
10eb64f5 MV |
32 | endif::git-pull[] |
33 | ifndef::git-pull[] | |
3240240f SB |
34 | -n:: |
35 | --no-tags:: | |
10eb64f5 MV |
36 | endif::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:: | |
93d69d86 JL |
56 | By default `git-fetch` refuses to update the head which |
57 | corresponds to the current branch. This flag disables the | |
a597fb0e JH |
58 | check. This is purely for the internal use for `git-pull` |
59 | to communicate with `git-fetch`, and unless you are | |
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. |