1git-fetch(1) 2============ 3 4NAME 5---- 6git-fetch - Download objects and refs from another repository 7 8 9SYNOPSIS 10-------- 11'git fetch' <options> <repository> <refspec>... 12 13'git fetch' <options> <group> 14 15'git fetch' --all <options> 16 17 18DESCRIPTION 19----------- 20Fetches named heads or tags from one or more other repositories, 21along with the objects necessary to complete them. 22 23The ref names and their object names of fetched refs are stored 24in `.git/FETCH_HEAD`. This information is left for a later merge 25operation done by 'git-merge'. 26 27When <refspec> stores the fetched result in tracking branches, 28the tags that point at these branches are automatically 29followed. This is done by first fetching from the remote using 30the given <refspec>s, and if the repository has objects that are 31pointed by remote tags that it does not yet have, then fetch 32those missing tags. If the other end has tags that point at 33branches you are not interested in, you will not get them. 34 35'git fetch' can fetch from either a single named repository, or 36or from several repositories at once if <group> is given and 37there is a remotes.<group> entry in the configuration file. 38(See linkgit:git-config[1]). 39 40OPTIONS 41------- 42include::fetch-options.txt[] 43 44include::pull-fetch-param.txt[] 45 46include::urls-remotes.txt[] 47 48SEE ALSO 49-------- 50linkgit:git-pull[1] 51 52 53Author 54------ 55Written by Linus Torvalds <torvalds@osdl.org> and 56Junio C Hamano <gitster@pobox.com> 57 58Documentation 59------------- 60Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>. 61 62GIT 63--- 64Part of the linkgit:git[1] suite