1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
\r
4 <article lang="en" id="git-fetch-pack(1)">
\r
6 <title>git-fetch-pack(1)</title>
\r
8 <primary>git-fetch-pack(1)</primary>
\r
11 <simplesect id="_name">
\r
13 <simpara>git-fetch-pack - Receive missing objects from another repository</simpara>
\r
15 <simplesect id="_synopsis">
\r
16 <title>SYNOPSIS</title>
\r
17 <simpara><emphasis>git fetch-pack</emphasis> [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] [<host>:]<directory> [<refs>…]</simpara>
\r
19 <simplesect id="_description">
\r
20 <title>DESCRIPTION</title>
\r
21 <simpara>Usually you would want to use <emphasis>git-fetch</emphasis>, which is a
\r
22 higher level wrapper of this command, instead.</simpara>
\r
23 <simpara>Invokes <emphasis>git-upload-pack</emphasis> on a possibly remote repository
\r
24 and asks it to send objects missing from this repository, to
\r
25 update the named heads. The list of commits available locally
\r
26 is found out by scanning local $GIT_DIR/refs/ and sent to
\r
27 <emphasis>git-upload-pack</emphasis> running on the other end.</simpara>
\r
28 <simpara>This command degenerates to download everything to complete the
\r
29 asked refs from the remote side when the local side does not
\r
30 have a common ancestor commit.</simpara>
\r
32 <simplesect id="_options">
\r
33 <title>OPTIONS</title>
\r
41 Fetch all remote refs.
\r
54 Pass <emphasis>-q</emphasis> flag to <emphasis>git-unpack-objects</emphasis>; this makes the
\r
55 cloning process less verbose.
\r
68 Do not invoke <emphasis>git-unpack-objects</emphasis> on received data, but
\r
69 create a single packfile out of it instead, and store it
\r
70 in the object database. If provided twice then the pack is
\r
71 locked against repacking.
\r
81 Spend extra cycles to minimize the number of objects to be sent.
\r
82 Use it on slower connection.
\r
92 If the remote side supports it, annotated tags objects will
\r
93 be downloaded on the same connection as the other objects if
\r
94 the object the tag references is downloaded. The caller must
\r
95 otherwise determine the tags this option made available.
\r
101 --upload-pack=<git-upload-pack>
\r
105 Use this to specify the path to <emphasis>git-upload-pack</emphasis> on the
\r
106 remote side, if is not found on your $PATH.
\r
107 Installations of sshd ignores the user’s environment
\r
108 setup scripts for login shells (e.g. .bash_profile) and
\r
109 your privately installed git may not be found on the system
\r
110 default $PATH. Another workaround suggested is to set
\r
111 up your $PATH in ".bashrc", but this flag is for people
\r
112 who do not want to pay the overhead for non-interactive
\r
113 shells by having a lean .bashrc file (they set most of
\r
114 the things up in .bash_profile).
\r
120 --exec=<git-upload-pack>
\r
124 Same as --upload-pack=<git-upload-pack>.
\r
134 Limit fetching to ancestor-chains not longer than n.
\r
144 Do not show the progress.
\r
164 A remote host that houses the repository. When this
\r
165 part is specified, <emphasis>git-upload-pack</emphasis> is invoked via
\r
176 The repository to sync from.
\r
182 <refs>…
\r
186 The remote heads to update from. This is relative to
\r
187 $GIT_DIR (e.g. "HEAD", "refs/heads/master"). When
\r
188 unspecified, update from all heads the remote side has.
\r
194 <simplesect id="_author">
\r
195 <title>Author</title>
\r
196 <simpara>Written by Linus Torvalds <<ulink url="mailto:torvalds@osdl.org">torvalds@osdl.org</ulink>></simpara>
\r
198 <simplesect id="_documentation">
\r
199 <title>Documentation</title>
\r
200 <simpara>Documentation by Junio C Hamano.</simpara>
\r
202 <simplesect id="_git">
\r
204 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>
\r