blob: da034223f3a0c07bc3451814ae8d087423f1e2f5 [file] [log] [blame]
Junio C Hamano9882a522007-04-27 08:22:221-q, \--quiet::
2Pass --quiet to git-fetch-pack and silence any other internally
3used programs.
4
5-v, \--verbose::
6Be verbose.
7
Junio C Hamano1a4e8412005-12-27 08:17:238-a, \--append::
9Append ref names and object names of fetched refs to the
10existing contents of `.git/FETCH_HEAD`. Without this
11option old data in `.git/FETCH_HEAD` will be overwritten.
12
Junio C Hamanob59a8af2006-01-27 03:38:2813\--upload-pack <upload-pack>::
Junio C Hamano9882a522007-04-27 08:22:2214When given, and the repository to fetch from is handled
15by 'git-fetch-pack', '--exec=<upload-pack>' is passed to
16the command to specify non-default path for the command
17run on the other end.
Junio C Hamanoe663a7a2006-01-25 12:37:2818
Junio C Hamano1a4e8412005-12-27 08:17:2319-f, \--force::
20When `git-fetch` is used with `<rbranch>:<lbranch>`
21refspec, it refuses to update the local branch
22`<lbranch>` unless the remote branch `<rbranch>` it
23fetches is a descendant of `<lbranch>`. This option
24overrides that check.
25
Junio C Hamano9882a522007-04-27 08:22:2226-n, \--no-tags::
Junio C Hamano4d04a402006-01-09 00:53:2827By default, `git-fetch` fetches tags that point at
28objects that are downloaded from the remote repository
29and stores them locally. This option disables this
30automatic tag following.
31
Junio C Hamano1a4e8412005-12-27 08:17:2332-t, \--tags::
Junio C Hamano4d04a402006-01-09 00:53:2833Most of the tags are fetched automatically as branch
34heads are downloaded, but tags that do not point at
35objects reachable from the branch heads that are being
36tracked will not be fetched by this mechanism. This
37flag lets all tags and their associated objects be
38downloaded.
Junio C Hamano1a4e8412005-12-27 08:17:2339
Junio C Hamanob6bdc742006-01-11 11:35:3240-k, \--keep::
41Keep downloaded pack.
42
Junio C Hamano1a4e8412005-12-27 08:17:2343-u, \--update-head-ok::
44By default `git-fetch` refuses to update the head which
45corresponds to the current branch. This flag disables the
Junio C Hamanob288d9e2007-01-02 00:04:1546check. This is purely for the internal use for `git-pull`
47to communicate with `git-fetch`, and unless you are
48implementing your own Porcelain you are not supposed to
49use it.
50
51\--depth=<depth>::
52Deepen the history of a 'shallow' repository created by
53`git clone` with `--depth=<depth>` option (see gitlink:git-clone[1])
54by the specified number of commits.