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.
6 --upload-pack <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
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
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.
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
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.