blob: e9952e82108d3a0fa209bc9d720fa1f1229310b4 [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 Hamanofce7c7e2008-07-02 03:06:3811'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:2312
13DESCRIPTION
14-----------
Junio C Hamano1aa40d22010-01-21 17:46:4315Usually you would want to use 'git fetch', which is a
Junio C Hamanofce7c7e2008-07-02 03:06:3816higher level wrapper of this command, instead.
Junio C Hamanoe58607f2007-01-17 23:27:4517
Junio C Hamanoba4b9282008-07-06 05:20:3118Invokes 'git-upload-pack' on a possibly remote repository
Junio C Hamano1a4e8412005-12-27 08:17:2319and asks it to send objects missing from this repository, to
20update the named heads. The list of commits available locally
21is found out by scanning local $GIT_DIR/refs/ and sent to
Junio C Hamanoba4b9282008-07-06 05:20:3122'git-upload-pack' running on the other end.
Junio C Hamano1a4e8412005-12-27 08:17:2323
24This command degenerates to download everything to complete the
25asked refs from the remote side when the local side does not
26have a common ancestor commit.
27
28
29OPTIONS
30-------
Junio C Hamanoeb415992008-06-08 22:49:4731--all::
Junio C Hamano4ad294b2007-01-20 02:22:5032Fetch all remote refs.
33
Junio C Hamanoeb415992008-06-08 22:49:4734-q::
35--quiet::
Junio C Hamano1aa40d22010-01-21 17:46:4336Pass '-q' flag to 'git unpack-objects'; this makes the
Junio C Hamano1a4e8412005-12-27 08:17:2337cloning process less verbose.
38
Junio C Hamanoeb415992008-06-08 22:49:4739-k::
40--keep::
Junio C Hamano1aa40d22010-01-21 17:46:4341Do not invoke 'git unpack-objects' on received data, but
Junio C Hamano1a4e8412005-12-27 08:17:2342create a single packfile out of it instead, and store it
Junio C Hamano0d3c8152006-11-08 01:33:4143in the object database. If provided twice then the pack is
44locked against repacking.
Junio C Hamano1a4e8412005-12-27 08:17:2345
Junio C Hamanoeb415992008-06-08 22:49:4746--thin::
Junio C Hamano4ad294b2007-01-20 02:22:5047Spend extra cycles to minimize the number of objects to be sent.
48Use it on slower connection.
49
Junio C Hamanoeb415992008-06-08 22:49:4750--include-tag::
Junio C Hamanobb343172008-03-09 10:39:0951If the remote side supports it, annotated tags objects will
52be downloaded on the same connection as the other objects if
53the object the tag references is downloaded. The caller must
54otherwise determine the tags this option made available.
55
Junio C Hamanoeb415992008-06-08 22:49:4756--upload-pack=<git-upload-pack>::
Junio C Hamanoba4b9282008-07-06 05:20:3157Use this to specify the path to 'git-upload-pack' on the
Junio C Hamano1a4e8412005-12-27 08:17:2358remote side, if is not found on your $PATH.
59Installations of sshd ignores the user's environment
60setup scripts for login shells (e.g. .bash_profile) and
61your privately installed git may not be found on the system
62default $PATH. Another workaround suggested is to set
63up your $PATH in ".bashrc", but this flag is for people
64who do not want to pay the overhead for non-interactive
65shells by having a lean .bashrc file (they set most of
66the things up in .bash_profile).
67
Junio C Hamanoeb415992008-06-08 22:49:4768--exec=<git-upload-pack>::
Junio C Hamanofa0d4cf2007-01-25 02:23:5869Same as \--upload-pack=<git-upload-pack>.
70
Junio C Hamanoeb415992008-06-08 22:49:4771--depth=<n>::
Junio C Hamano4ad294b2007-01-20 02:22:5072Limit fetching to ancestor-chains not longer than n.
73
Junio C Hamanoeb415992008-06-08 22:49:4774--no-progress::
Junio C Hamanoaa83a7d2007-03-05 02:37:2975Do not show the progress.
76
Junio C Hamanoeb415992008-06-08 22:49:4777-v::
Junio C Hamano4ad294b2007-01-20 02:22:5078Run verbosely.
79
Junio C Hamano1a4e8412005-12-27 08:17:2380<host>::
81A remote host that houses the repository. When this
Junio C Hamanoba4b9282008-07-06 05:20:3182part is specified, 'git-upload-pack' is invoked via
Junio C Hamano1a4e8412005-12-27 08:17:2383ssh.
84
85<directory>::
86The repository to sync from.
87
88<refs>...::
89The remote heads to update from. This is relative to
90$GIT_DIR (e.g. "HEAD", "refs/heads/master"). When
91unspecified, update from all heads the remote side has.
92
93
94Author
95------
96Written by Linus Torvalds <torvalds@osdl.org>
97
98Documentation
99--------------
100Documentation by Junio C Hamano.
101
102GIT
103---
Junio C Hamanof7c042d2008-06-06 22:50:53104Part of the linkgit:git[1] suite