blob: d3164c5c88db6b9e02a4186c398e19c425bc204b [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-fetch(1)
2============
3
4NAME
5----
Junio C Hamano7c73c662007-01-19 00:37:506git-fetch - Download objects and refs from another repository
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamanofce7c7e2008-07-02 03:06:3811'git fetch' <options> <repository> <refspec>...
Junio C Hamano1a4e8412005-12-27 08:17:2312
13
14DESCRIPTION
15-----------
16Fetches named heads or tags from another repository, along with
17the objects necessary to complete them.
18
19The ref names and their object names of fetched refs are stored
20in `.git/FETCH_HEAD`. This information is left for a later merge
Junio C Hamanoba4b9282008-07-06 05:20:3121operation done by 'git-merge'.
Junio C Hamano1a4e8412005-12-27 08:17:2322
Junio C Hamano8be70732007-02-10 01:28:4023When <refspec> stores the fetched result in tracking branches,
24the tags that point at these branches are automatically
25followed. This is done by first fetching from the remote using
26the given <refspec>s, and if the repository has objects that are
27pointed by remote tags that it does not yet have, then fetch
28those missing tags. If the other end has tags that point at
29branches you are not interested in, you will not get them.
30
Junio C Hamano1a4e8412005-12-27 08:17:2331
32OPTIONS
33-------
34include::fetch-options.txt[]
35
36include::pull-fetch-param.txt[]
37
Junio C Hamano330aae62007-07-06 17:01:5838include::urls-remotes.txt[]
Junio C Hamano1a4e8412005-12-27 08:17:2339
40SEE ALSO
41--------
Junio C Hamano35738e82008-01-07 07:55:4642linkgit:git-pull[1]
Junio C Hamano1a4e8412005-12-27 08:17:2343
44
45Author
46------
47Written by Linus Torvalds <torvalds@osdl.org> and
Junio C Hamano0868a302008-07-22 09:20:4448Junio C Hamano <gitster@pobox.com>
Junio C Hamano1a4e8412005-12-27 08:17:2349
50Documentation
51-------------
52Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
53
54GIT
55---
Junio C Hamanof7c042d2008-06-06 22:50:5356Part of the linkgit:git[1] suite