]> git.ipfire.org Git - thirdparty/git.git/blob - Documentation/fetch-options.txt
GIT 1.1.0
[thirdparty/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 -f, \--force::
7 When `git-fetch` is used with `<rbranch>:<lbranch>`
8 refspec, it refuses to update the local branch
9 `<lbranch>` unless the remote branch `<rbranch>` it
10 fetches is a descendant of `<lbranch>`. This option
11 overrides that check.
12
13 \--no-tags::
14 By default, `git-fetch` fetches tags that point at
15 objects that are downloaded from the remote repository
16 and stores them locally. This option disables this
17 automatic tag following.
18
19 -t, \--tags::
20 Most of the tags are fetched automatically as branch
21 heads are downloaded, but tags that do not point at
22 objects reachable from the branch heads that are being
23 tracked will not be fetched by this mechanism. This
24 flag lets all tags and their associated objects be
25 downloaded.
26
27 -u, \--update-head-ok::
28 By default `git-fetch` refuses to update the head which
29 corresponds to the current branch. This flag disables the
30 check. Note that fetching into the current branch will not
31 update the index and working directory, so use it with care.
32