]>
Commit | Line | Data |
---|---|---|
93d69d86 JL |
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:: | |
a3e3dc46 JH |
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. | |
93d69d86 | 12 | |
03febf99 JH |
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 | ||
93d69d86 | 19 | -t, \--tags:: |
03febf99 JH |
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. | |
93d69d86 JL |
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. | |
03febf99 | 32 |