Teach the --multiple option to 'git fetch'
[git/dscho.git] / Documentation / fetch-options.txt
blob8b0cf581962e48f85ff35cbe3c9eeec1109a9971
1 --all::
2         Fetch all remotes.
4 -a::
5 --append::
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.
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.
15 -f::
16 --force::
17         When 'git-fetch' is used with `<rbranch>:<lbranch>`
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.
23 -k::
24 --keep::
25         Keep downloaded pack.
27 ifndef::git-pull[]
28 --multiple::
29         Allow several <repository> and <group> arguments to be
30         specified. No <refspec>s may be specified.
31 endif::git-pull[]
33 ifdef::git-pull[]
34 --no-tags::
35 endif::git-pull[]
36 ifndef::git-pull[]
37 -n::
38 --no-tags::
39 endif::git-pull[]
40         By default, tags that point at objects that are downloaded
41         from the remote repository are fetched and stored locally.
42         This option disables this automatic tag following.
44 -t::
45 --tags::
46         Most of the tags are fetched automatically as branch
47         heads are downloaded, but tags that do not point at
48         objects reachable from the branch heads that are being
49         tracked will not be fetched by this mechanism.  This
50         flag lets all tags and their associated objects be
51         downloaded.
53 -u::
54 --update-head-ok::
55         By default 'git-fetch' refuses to update the head which
56         corresponds to the current branch.  This flag disables the
57         check.  This is purely for the internal use for 'git-pull'
58         to communicate with 'git-fetch', and unless you are
59         implementing your own Porcelain you are not supposed to
60         use it.
62 --upload-pack <upload-pack>::
63         When given, and the repository to fetch from is handled
64         by 'git-fetch-pack', '--exec=<upload-pack>' is passed to
65         the command to specify non-default path for the command
66         run on the other end.
68 ifndef::git-pull[]
69 -q::
70 --quiet::
71         Pass --quiet to git-fetch-pack and silence any other internally
72         used git commands.
74 -v::
75 --verbose::
76         Be verbose.
77 endif::git-pull[]