git-fetch: pass --upload-pack to fetch-pack
[git.git] / Documentation / fetch-options.txt
1 -a, \--append::
2         Append ref names and object names of fetched refs to the
3         existing contents of `.git/FETCH_HEAD`.  Without this
4         option old data in `.git/FETCH_HEAD` will be overwritten.
5
6 --upload-pack <upload-pack>::
7 -u <upload-pack>::
8         When given, and the repository to fetch from is handled
9         by 'git-fetch-pack', '--exec=<upload-pack>' is passed to
10         the command to specify non-default path for the command
11         run on the other end.
12
13 -f, \--force::
14         When `git-fetch` is used with `<rbranch>:<lbranch>`
15         refspec, it refuses to update the local branch
16         `<lbranch>` unless the remote branch `<rbranch>` it
17         fetches is a descendant of `<lbranch>`.  This option
18         overrides that check.
19
20 \--no-tags::
21         By default, `git-fetch` fetches tags that point at
22         objects that are downloaded from the remote repository
23         and stores them locally.  This option disables this
24         automatic tag following.
25
26 -t, \--tags::
27         Most of the tags are fetched automatically as branch
28         heads are downloaded, but tags that do not point at
29         objects reachable from the branch heads that are being
30         tracked will not be fetched by this mechanism.  This
31         flag lets all tags and their associated objects be
32         downloaded.
33
34 -k, \--keep::
35         Keep downloaded pack.
36
37 -u, \--update-head-ok::
38         By default `git-fetch` refuses to update the head which
39         corresponds to the current branch.  This flag disables the
40         check.  Note that fetching into the current branch will not
41         update the index and working directory, so use it with care.
42