OSDN Git Service

Add Git official document to help
[tortoisegit/TortoiseGitJp.git] / doc / source / en / TortoiseGit / git_doc / git-fetch-pack.html.xml
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
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 <simpara><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;]</simpara>\r
18 </simplesect>\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
31 </simplesect>\r
32 <simplesect id="_options">\r
33 <title>OPTIONS</title>\r
34 <variablelist>\r
35 <varlistentry>\r
36 <term>\r
37 --all\r
38 </term>\r
39 <listitem>\r
40 <simpara>\r
41         Fetch all remote refs.\r
42 </simpara>\r
43 </listitem>\r
44 </varlistentry>\r
45 <varlistentry>\r
46 <term>\r
47 -q\r
48 </term>\r
49 <term>\r
50 --quiet\r
51 </term>\r
52 <listitem>\r
53 <simpara>\r
54         Pass <emphasis>-q</emphasis> flag to <emphasis>git-unpack-objects</emphasis>; this makes the\r
55         cloning process less verbose.\r
56 </simpara>\r
57 </listitem>\r
58 </varlistentry>\r
59 <varlistentry>\r
60 <term>\r
61 -k\r
62 </term>\r
63 <term>\r
64 --keep\r
65 </term>\r
66 <listitem>\r
67 <simpara>\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
72 </simpara>\r
73 </listitem>\r
74 </varlistentry>\r
75 <varlistentry>\r
76 <term>\r
77 --thin\r
78 </term>\r
79 <listitem>\r
80 <simpara>\r
81         Spend extra cycles to minimize the number of objects to be sent.\r
82         Use it on slower connection.\r
83 </simpara>\r
84 </listitem>\r
85 </varlistentry>\r
86 <varlistentry>\r
87 <term>\r
88 --include-tag\r
89 </term>\r
90 <listitem>\r
91 <simpara>\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
96 </simpara>\r
97 </listitem>\r
98 </varlistentry>\r
99 <varlistentry>\r
100 <term>\r
101 --upload-pack=&lt;git-upload-pack&gt;\r
102 </term>\r
103 <listitem>\r
104 <simpara>\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&#8217;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
115 </simpara>\r
116 </listitem>\r
117 </varlistentry>\r
118 <varlistentry>\r
119 <term>\r
120 --exec=&lt;git-upload-pack&gt;\r
121 </term>\r
122 <listitem>\r
123 <simpara>\r
124         Same as --upload-pack=&lt;git-upload-pack&gt;.\r
125 </simpara>\r
126 </listitem>\r
127 </varlistentry>\r
128 <varlistentry>\r
129 <term>\r
130 --depth=&lt;n&gt;\r
131 </term>\r
132 <listitem>\r
133 <simpara>\r
134         Limit fetching to ancestor-chains not longer than n.\r
135 </simpara>\r
136 </listitem>\r
137 </varlistentry>\r
138 <varlistentry>\r
139 <term>\r
140 --no-progress\r
141 </term>\r
142 <listitem>\r
143 <simpara>\r
144         Do not show the progress.\r
145 </simpara>\r
146 </listitem>\r
147 </varlistentry>\r
148 <varlistentry>\r
149 <term>\r
150 -v\r
151 </term>\r
152 <listitem>\r
153 <simpara>\r
154         Run verbosely.\r
155 </simpara>\r
156 </listitem>\r
157 </varlistentry>\r
158 <varlistentry>\r
159 <term>\r
160 &lt;host&gt;\r
161 </term>\r
162 <listitem>\r
163 <simpara>\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
166         ssh.\r
167 </simpara>\r
168 </listitem>\r
169 </varlistentry>\r
170 <varlistentry>\r
171 <term>\r
172 &lt;directory&gt;\r
173 </term>\r
174 <listitem>\r
175 <simpara>\r
176         The repository to sync from.\r
177 </simpara>\r
178 </listitem>\r
179 </varlistentry>\r
180 <varlistentry>\r
181 <term>\r
182 &lt;refs&gt;&#8230;\r
183 </term>\r
184 <listitem>\r
185 <simpara>\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
189 </simpara>\r
190 </listitem>\r
191 </varlistentry>\r
192 </variablelist>\r
193 </simplesect>\r
194 <simplesect id="_author">\r
195 <title>Author</title>\r
196 <simpara>Written by Linus Torvalds &lt;<ulink url="mailto:torvalds@osdl.org">torvalds@osdl.org</ulink>&gt;</simpara>\r
197 </simplesect>\r
198 <simplesect id="_documentation">\r
199 <title>Documentation</title>\r
200 <simpara>Documentation by Junio C Hamano.</simpara>\r
201 </simplesect>\r
202 <simplesect id="_git">\r
203 <title>GIT</title>\r
204 <simpara>Part of the <xref linkend="git(1)"/> suite</simpara>\r
205 </simplesect>\r
206 </article>\r