1 <?xml version="1.0" encoding="UTF-8"?>
\r
2 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/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
18 <literallayout><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>…]</literallayout>
\r
21 <simplesect id="_description">
\r
22 <title>DESCRIPTION</title>
\r
23 <simpara>Usually you would want to use <emphasis>git fetch</emphasis>, which is a
\r
24 higher level wrapper of this command, instead.</simpara>
\r
25 <simpara>Invokes <emphasis>git-upload-pack</emphasis> on a possibly remote repository
\r
26 and asks it to send objects missing from this repository, to
\r
27 update the named heads. The list of commits available locally
\r
28 is found out by scanning the local refs/ hierarchy and sent to
\r
29 <emphasis>git-upload-pack</emphasis> running on the other end.</simpara>
\r
30 <simpara>This command degenerates to download everything to complete the
\r
31 asked refs from the remote side when the local side does not
\r
32 have a common ancestor commit.</simpara>
\r
34 <simplesect id="_options">
\r
35 <title>OPTIONS</title>
\r
43 Fetch all remote refs.
\r
53 Take the list of refs from stdin, one per line. If there
\r
54 are refs specified on the command line in addition to this
\r
55 option, then the refs from stdin are processed after those
\r
56 on the command line.
\r
58 <simpara>If <emphasis>--stateless-rpc</emphasis> is specified together with this option then
\r
59 the list of refs must be in packet format (pkt-line). Each ref must
\r
60 be in a separate packet, and the list must end with a flush packet.</simpara>
\r
72 Pass <emphasis>-q</emphasis> flag to <emphasis>git unpack-objects</emphasis>; this makes the
\r
73 cloning process less verbose.
\r
86 Do not invoke <emphasis>git unpack-objects</emphasis> on received data, but
\r
87 create a single packfile out of it instead, and store it
\r
88 in the object database. If provided twice then the pack is
\r
89 locked against repacking.
\r
99 Fetch a "thin" pack, which records objects in deltified form based
\r
100 on objects not included in the pack to reduce network traffic.
\r
110 If the remote side supports it, annotated tags objects will
\r
111 be downloaded on the same connection as the other objects if
\r
112 the object the tag references is downloaded. The caller must
\r
113 otherwise determine the tags this option made available.
\r
119 --upload-pack=<git-upload-pack>
\r
123 Use this to specify the path to <emphasis>git-upload-pack</emphasis> on the
\r
124 remote side, if is not found on your $PATH.
\r
125 Installations of sshd ignores the user's environment
\r
126 setup scripts for login shells (e.g. .bash_profile) and
\r
127 your privately installed git may not be found on the system
\r
128 default $PATH. Another workaround suggested is to set
\r
129 up your $PATH in ".bashrc", but this flag is for people
\r
130 who do not want to pay the overhead for non-interactive
\r
131 shells by having a lean .bashrc file (they set most of
\r
132 the things up in .bash_profile).
\r
138 --exec=<git-upload-pack>
\r
142 Same as --upload-pack=<git-upload-pack>.
\r
152 Limit fetching to ancestor-chains not longer than n.
\r
162 Do not show the progress.
\r
182 A remote host that houses the repository. When this
\r
183 part is specified, <emphasis>git-upload-pack</emphasis> is invoked via
\r
194 The repository to sync from.
\r
200 <refs>…
\r
204 The remote heads to update from. This is relative to
\r
205 $GIT_DIR (e.g. "HEAD", "refs/heads/master"). When
\r
206 unspecified, update from all heads the remote side has.
\r
212 <simplesect id="_git">
\r
214 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>
\r