Junio C Hamano | 9882a52 | 2007-04-27 08:22:22 | [diff] [blame] | 1 | -q, \--quiet:: |
| 2 | Pass --quiet to git-fetch-pack and silence any other internally |
| 3 | used programs. |
| 4 | |
| 5 | -v, \--verbose:: |
| 6 | Be verbose. |
| 7 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 8 | -a, \--append:: |
| 9 | Append ref names and object names of fetched refs to the |
| 10 | existing contents of `.git/FETCH_HEAD`. Without this |
| 11 | option old data in `.git/FETCH_HEAD` will be overwritten. |
| 12 | |
Junio C Hamano | b59a8af | 2006-01-27 03:38:28 | [diff] [blame] | 13 | \--upload-pack <upload-pack>:: |
Junio C Hamano | 9882a52 | 2007-04-27 08:22:22 | [diff] [blame] | 14 | When given, and the repository to fetch from is handled |
| 15 | by 'git-fetch-pack', '--exec=<upload-pack>' is passed to |
| 16 | the command to specify non-default path for the command |
| 17 | run on the other end. |
Junio C Hamano | e663a7a | 2006-01-25 12:37:28 | [diff] [blame] | 18 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 19 | -f, \--force:: |
| 20 | When `git-fetch` is used with `<rbranch>:<lbranch>` |
| 21 | refspec, it refuses to update the local branch |
| 22 | `<lbranch>` unless the remote branch `<rbranch>` it |
| 23 | fetches is a descendant of `<lbranch>`. This option |
| 24 | overrides that check. |
| 25 | |
Junio C Hamano | 9882a52 | 2007-04-27 08:22:22 | [diff] [blame] | 26 | -n, \--no-tags:: |
Junio C Hamano | 4d04a40 | 2006-01-09 00:53:28 | [diff] [blame] | 27 | By default, `git-fetch` fetches tags that point at |
| 28 | objects that are downloaded from the remote repository |
| 29 | and stores them locally. This option disables this |
| 30 | automatic tag following. |
| 31 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 32 | -t, \--tags:: |
Junio C Hamano | 4d04a40 | 2006-01-09 00:53:28 | [diff] [blame] | 33 | Most of the tags are fetched automatically as branch |
| 34 | heads are downloaded, but tags that do not point at |
| 35 | objects reachable from the branch heads that are being |
| 36 | tracked will not be fetched by this mechanism. This |
| 37 | flag lets all tags and their associated objects be |
| 38 | downloaded. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 39 | |
Junio C Hamano | b6bdc74 | 2006-01-11 11:35:32 | [diff] [blame] | 40 | -k, \--keep:: |
| 41 | Keep downloaded pack. |
| 42 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 43 | -u, \--update-head-ok:: |
| 44 | By default `git-fetch` refuses to update the head which |
| 45 | corresponds to the current branch. This flag disables the |
Junio C Hamano | b288d9e | 2007-01-02 00:04:15 | [diff] [blame] | 46 | check. This is purely for the internal use for `git-pull` |
| 47 | to communicate with `git-fetch`, and unless you are |
| 48 | implementing your own Porcelain you are not supposed to |
| 49 | use it. |
| 50 | |
| 51 | \--depth=<depth>:: |
| 52 | Deepen the history of a 'shallow' repository created by |
| 53 | `git clone` with `--depth=<depth>` option (see gitlink:git-clone[1]) |
| 54 | by the specified number of commits. |