blob: 474fa307a093ed126ab4f2216103a042d4bb0930 [file] [log] [blame]
Junio C Hamano1a4e8412005-12-27 08:17:231git-fetch-pack(1)
2=================
3
4NAME
5----
Junio C Hamano01078922006-03-10 00:31:476git-fetch-pack - Receive missing objects from another repository
Junio C Hamano1a4e8412005-12-27 08:17:237
8
9SYNOPSIS
10--------
Junio C Hamano15567bc2011-07-23 00:51:5911[verse]
Junio C Hamanofce7c7e2008-07-02 03:06:3812'git fetch-pack' [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] [<host>:]<directory> [<refs>...]
Junio C Hamano1a4e8412005-12-27 08:17:2313
14DESCRIPTION
15-----------
Junio C Hamano1aa40d22010-01-21 17:46:4316Usually you would want to use 'git fetch', which is a
Junio C Hamanofce7c7e2008-07-02 03:06:3817higher level wrapper of this command, instead.
Junio C Hamanoe58607f2007-01-17 23:27:4518
Junio C Hamanoba4b9282008-07-06 05:20:3119Invokes 'git-upload-pack' on a possibly remote repository
Junio C Hamano1a4e8412005-12-27 08:17:2320and asks it to send objects missing from this repository, to
21update the named heads. The list of commits available locally
Junio C Hamano4fdccb22010-02-19 09:58:1422is found out by scanning the local refs/ hierarchy and sent to
Junio C Hamanoba4b9282008-07-06 05:20:3123'git-upload-pack' running on the other end.
Junio C Hamano1a4e8412005-12-27 08:17:2324
25This command degenerates to download everything to complete the
26asked refs from the remote side when the local side does not
27have a common ancestor commit.
28
29
30OPTIONS
31-------
Junio C Hamanoeb415992008-06-08 22:49:4732--all::
Junio C Hamano4ad294b2007-01-20 02:22:5033Fetch all remote refs.
34
Junio C Hamano18b647e2012-04-24 22:16:1935--stdin::
36Take the list of refs from stdin, one per line. If there
37are refs specified on the command line in addition to this
38option, then the refs from stdin are processed after those
39on the command line.
40+
41If '--stateless-rpc' is specified together with this option then
42the list of refs must be in packet format (pkt-line). Each ref must
43be in a separate packet, and the list must end with a flush packet.
44
Junio C Hamanoeb415992008-06-08 22:49:4745-q::
46--quiet::
Junio C Hamano1aa40d22010-01-21 17:46:4347Pass '-q' flag to 'git unpack-objects'; this makes the
Junio C Hamano1a4e8412005-12-27 08:17:2348cloning process less verbose.
49
Junio C Hamanoeb415992008-06-08 22:49:4750-k::
51--keep::
Junio C Hamano1aa40d22010-01-21 17:46:4352Do not invoke 'git unpack-objects' on received data, but
Junio C Hamano1a4e8412005-12-27 08:17:2353create a single packfile out of it instead, and store it
Junio C Hamano0d3c8152006-11-08 01:33:4154in the object database. If provided twice then the pack is
55locked against repacking.
Junio C Hamano1a4e8412005-12-27 08:17:2356
Junio C Hamanoeb415992008-06-08 22:49:4757--thin::
Junio C Hamano4fdccb22010-02-19 09:58:1458Fetch a "thin" pack, which records objects in deltified form based
59on objects not included in the pack to reduce network traffic.
Junio C Hamano4ad294b2007-01-20 02:22:5060
Junio C Hamanoeb415992008-06-08 22:49:4761--include-tag::
Junio C Hamanobb343172008-03-09 10:39:0962If the remote side supports it, annotated tags objects will
63be downloaded on the same connection as the other objects if
64the object the tag references is downloaded. The caller must
65otherwise determine the tags this option made available.
66
Junio C Hamanoeb415992008-06-08 22:49:4767--upload-pack=<git-upload-pack>::
Junio C Hamanoba4b9282008-07-06 05:20:3168Use this to specify the path to 'git-upload-pack' on the
Junio C Hamano1a4e8412005-12-27 08:17:2369remote side, if is not found on your $PATH.
70Installations of sshd ignores the user's environment
71setup scripts for login shells (e.g. .bash_profile) and
72your privately installed git may not be found on the system
73default $PATH. Another workaround suggested is to set
74up your $PATH in ".bashrc", but this flag is for people
75who do not want to pay the overhead for non-interactive
76shells by having a lean .bashrc file (they set most of
77the things up in .bash_profile).
78
Junio C Hamanoeb415992008-06-08 22:49:4779--exec=<git-upload-pack>::
Junio C Hamanofa0d4cf2007-01-25 02:23:5880Same as \--upload-pack=<git-upload-pack>.
81
Junio C Hamanoeb415992008-06-08 22:49:4782--depth=<n>::
Junio C Hamano4ad294b2007-01-20 02:22:5083Limit fetching to ancestor-chains not longer than n.
84
Junio C Hamanoeb415992008-06-08 22:49:4785--no-progress::
Junio C Hamanoaa83a7d2007-03-05 02:37:2986Do not show the progress.
87
Junio C Hamanoeb415992008-06-08 22:49:4788-v::
Junio C Hamano4ad294b2007-01-20 02:22:5089Run verbosely.
90
Junio C Hamano1a4e8412005-12-27 08:17:2391<host>::
92A remote host that houses the repository. When this
Junio C Hamanoba4b9282008-07-06 05:20:3193part is specified, 'git-upload-pack' is invoked via
Junio C Hamano1a4e8412005-12-27 08:17:2394ssh.
95
96<directory>::
97The repository to sync from.
98
99<refs>...::
100The remote heads to update from. This is relative to
101$GIT_DIR (e.g. "HEAD", "refs/heads/master"). When
102unspecified, update from all heads the remote side has.
103
Junio C Hamano1a4e8412005-12-27 08:17:23104GIT
105---
Junio C Hamanof7c042d2008-06-06 22:50:53106Part of the linkgit:git[1] suite