Fixed issue #1307: few CHM typos
[TortoiseGit.git] / doc / source / en / TortoiseGit / git_doc / git-fetch-pack.xml
blob4b432059f917a58c91073e1bab9fa692aaa615d5
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
3 \r
4 <article lang="en" id="git-fetch-pack(1)">\r
5 <articleinfo>\r
6     <title>git-fetch-pack(1)</title>\r
7 <indexterm>\r
8 <primary>git-fetch-pack(1)</primary>\r
9 </indexterm>\r
10 </articleinfo>\r
11 <simplesect id="_name">\r
12 <title>NAME</title>\r
13 <simpara>git-fetch-pack - Receive missing objects from another repository</simpara>\r
14 </simplesect>\r
15 <simplesect id="_synopsis">\r
16 <title>SYNOPSIS</title>\r
17 <blockquote>\r
18 <literallayout><emphasis>git fetch-pack</emphasis> [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=&lt;git-upload-pack&gt;] [--depth=&lt;n&gt;] [--no-progress] [-v] [&lt;host&gt;:]&lt;directory&gt; [&lt;refs&gt;&#8230;]</literallayout>\r
19 </blockquote>\r
20 </simplesect>\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
33 </simplesect>\r
34 <simplesect id="_options">\r
35 <title>OPTIONS</title>\r
36 <variablelist>\r
37 <varlistentry>\r
38 <term>\r
39 --all\r
40 </term>\r
41 <listitem>\r
42 <simpara>\r
43         Fetch all remote refs.\r
44 </simpara>\r
45 </listitem>\r
46 </varlistentry>\r
47 <varlistentry>\r
48 <term>\r
49 --stdin\r
50 </term>\r
51 <listitem>\r
52 <simpara>\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
57 </simpara>\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
61 </listitem>\r
62 </varlistentry>\r
63 <varlistentry>\r
64 <term>\r
65 -q\r
66 </term>\r
67 <term>\r
68 --quiet\r
69 </term>\r
70 <listitem>\r
71 <simpara>\r
72         Pass <emphasis>-q</emphasis> flag to <emphasis>git unpack-objects</emphasis>; this makes the\r
73         cloning process less verbose.\r
74 </simpara>\r
75 </listitem>\r
76 </varlistentry>\r
77 <varlistentry>\r
78 <term>\r
79 -k\r
80 </term>\r
81 <term>\r
82 --keep\r
83 </term>\r
84 <listitem>\r
85 <simpara>\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
90 </simpara>\r
91 </listitem>\r
92 </varlistentry>\r
93 <varlistentry>\r
94 <term>\r
95 --thin\r
96 </term>\r
97 <listitem>\r
98 <simpara>\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
101 </simpara>\r
102 </listitem>\r
103 </varlistentry>\r
104 <varlistentry>\r
105 <term>\r
106 --include-tag\r
107 </term>\r
108 <listitem>\r
109 <simpara>\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
114 </simpara>\r
115 </listitem>\r
116 </varlistentry>\r
117 <varlistentry>\r
118 <term>\r
119 --upload-pack=&lt;git-upload-pack&gt;\r
120 </term>\r
121 <listitem>\r
122 <simpara>\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
133 </simpara>\r
134 </listitem>\r
135 </varlistentry>\r
136 <varlistentry>\r
137 <term>\r
138 --exec=&lt;git-upload-pack&gt;\r
139 </term>\r
140 <listitem>\r
141 <simpara>\r
142         Same as --upload-pack=&lt;git-upload-pack&gt;.\r
143 </simpara>\r
144 </listitem>\r
145 </varlistentry>\r
146 <varlistentry>\r
147 <term>\r
148 --depth=&lt;n&gt;\r
149 </term>\r
150 <listitem>\r
151 <simpara>\r
152         Limit fetching to ancestor-chains not longer than n.\r
153 </simpara>\r
154 </listitem>\r
155 </varlistentry>\r
156 <varlistentry>\r
157 <term>\r
158 --no-progress\r
159 </term>\r
160 <listitem>\r
161 <simpara>\r
162         Do not show the progress.\r
163 </simpara>\r
164 </listitem>\r
165 </varlistentry>\r
166 <varlistentry>\r
167 <term>\r
168 -v\r
169 </term>\r
170 <listitem>\r
171 <simpara>\r
172         Run verbosely.\r
173 </simpara>\r
174 </listitem>\r
175 </varlistentry>\r
176 <varlistentry>\r
177 <term>\r
178 &lt;host&gt;\r
179 </term>\r
180 <listitem>\r
181 <simpara>\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
184         ssh.\r
185 </simpara>\r
186 </listitem>\r
187 </varlistentry>\r
188 <varlistentry>\r
189 <term>\r
190 &lt;directory&gt;\r
191 </term>\r
192 <listitem>\r
193 <simpara>\r
194         The repository to sync from.\r
195 </simpara>\r
196 </listitem>\r
197 </varlistentry>\r
198 <varlistentry>\r
199 <term>\r
200 &lt;refs&gt;&#8230;\r
201 </term>\r
202 <listitem>\r
203 <simpara>\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
207 </simpara>\r
208 </listitem>\r
209 </varlistentry>\r
210 </variablelist>\r
211 </simplesect>\r
212 <simplesect id="_git">\r
213 <title>GIT</title>\r
214 <simpara>Part of the <xref linkend="git(1)" /> suite</simpara>\r
215 </simplesect>\r
216 </article>\r