2005-09-08 02:26:23 +02:00
|
|
|
git-fetch(1)
|
|
|
|
============
|
2005-07-16 09:17:42 +02:00
|
|
|
|
|
|
|
NAME
|
|
|
|
----
|
2007-01-19 00:53:37 +01:00
|
|
|
git-fetch - Download objects and refs from another repository
|
2005-07-16 09:17:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
2008-06-30 08:09:04 +02:00
|
|
|
'git fetch' <options> <repository> <refspec>...
|
2005-07-16 09:17:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
2005-08-25 01:23:08 +02:00
|
|
|
Fetches named heads or tags from another repository, along with
|
|
|
|
the objects necessary to complete them.
|
|
|
|
|
|
|
|
The ref names and their object names of fetched refs are stored
|
2005-11-07 06:30:56 +01:00
|
|
|
in `.git/FETCH_HEAD`. This information is left for a later merge
|
2008-07-03 07:41:41 +02:00
|
|
|
operation done by 'git-merge'.
|
2005-07-16 09:17:42 +02:00
|
|
|
|
2007-02-10 00:41:35 +01:00
|
|
|
When <refspec> stores the fetched result in tracking branches,
|
|
|
|
the tags that point at these branches are automatically
|
|
|
|
followed. This is done by first fetching from the remote using
|
|
|
|
the given <refspec>s, and if the repository has objects that are
|
|
|
|
pointed by remote tags that it does not yet have, then fetch
|
|
|
|
those missing tags. If the other end has tags that point at
|
|
|
|
branches you are not interested in, you will not get them.
|
|
|
|
|
2005-07-16 09:17:42 +02:00
|
|
|
|
|
|
|
OPTIONS
|
|
|
|
-------
|
2005-11-07 06:30:56 +01:00
|
|
|
include::fetch-options.txt[]
|
2005-07-16 09:17:42 +02:00
|
|
|
|
2005-11-07 06:30:56 +01:00
|
|
|
include::pull-fetch-param.txt[]
|
2005-10-20 06:25:39 +02:00
|
|
|
|
2007-07-05 00:21:36 +02:00
|
|
|
include::urls-remotes.txt[]
|
2005-07-16 09:17:42 +02:00
|
|
|
|
2005-11-05 10:37:00 +01:00
|
|
|
SEE ALSO
|
|
|
|
--------
|
2007-12-29 07:20:38 +01:00
|
|
|
linkgit:git-pull[1]
|
2005-11-05 10:37:00 +01:00
|
|
|
|
|
|
|
|
2005-07-16 09:17:42 +02:00
|
|
|
Author
|
|
|
|
------
|
2005-08-15 02:24:36 +02:00
|
|
|
Written by Linus Torvalds <torvalds@osdl.org> and
|
2008-07-21 21:14:42 +02:00
|
|
|
Junio C Hamano <gitster@pobox.com>
|
2005-07-16 09:17:42 +02:00
|
|
|
|
|
|
|
Documentation
|
2005-10-03 19:16:30 +02:00
|
|
|
-------------
|
2005-07-16 09:17:42 +02:00
|
|
|
Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
|
|
|
|
|
|
|
|
GIT
|
|
|
|
---
|
2008-06-06 09:07:32 +02:00
|
|
|
Part of the linkgit:git[1] suite
|