| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-fetch(1) |
| 2 | ============ |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-fetch - Download objects and refs from another repository |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
| 11 | 'git-fetch' <options> <repository> <refspec>... |
| 12 | |
| 13 | |
| 14 | DESCRIPTION |
| 15 | ----------- |
| 16 | Fetches named heads or tags from another repository, along with |
| 17 | the objects necessary to complete them. |
| 18 | |
| 19 | The ref names and their object names of fetched refs are stored |
| 20 | in `.git/FETCH_HEAD`. This information is left for a later merge |
| 21 | operation done by "git merge". |
| 22 | |
| Junio C Hamano | 8be7073 | 2007-02-10 01:28:40 | [diff] [blame] | 23 | When <refspec> stores the fetched result in tracking branches, |
| 24 | the tags that point at these branches are automatically |
| 25 | followed. This is done by first fetching from the remote using |
| 26 | the given <refspec>s, and if the repository has objects that are |
| 27 | pointed by remote tags that it does not yet have, then fetch |
| 28 | those missing tags. If the other end has tags that point at |
| 29 | branches you are not interested in, you will not get them. |
| 30 | |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 31 | |
| 32 | OPTIONS |
| 33 | ------- |
| 34 | include::fetch-options.txt[] |
| 35 | |
| 36 | include::pull-fetch-param.txt[] |
| 37 | |
| Junio C Hamano | 40f2f8d | 2006-02-07 08:04:39 | [diff] [blame] | 38 | include::urls.txt[] |
| Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 39 | |
| 40 | SEE ALSO |
| 41 | -------- |
| 42 | gitlink:git-pull[1] |
| 43 | |
| 44 | |
| 45 | Author |
| 46 | ------ |
| 47 | Written by Linus Torvalds <torvalds@osdl.org> and |
| 48 | Junio C Hamano <junkio@cox.net> |
| 49 | |
| 50 | Documentation |
| 51 | ------------- |
| 52 | Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. |
| 53 | |
| 54 | GIT |
| 55 | --- |
| 56 | Part of the gitlink:git[7] suite |