1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
6 <meta name=
"generator" content=
"AsciiDoc 8.2.5" />
7 <style type=
"text/css">
9 p
, li
, dt
, dd
, div
, pre
, h1
, h2
, h3
, h4
, h5
, h6
{
11 border: 1px solid red;
16 margin: 1em 5% 1em 5%;
21 text-decoration: underline
;
39 h1
, h2
, h3
, h4
, h5
, h6
{
41 font-family: sans-serif
;
48 border-bottom: 2px solid silver
;
66 border: 1px solid silver
;
81 font-family: sans-serif
;
88 font-family: sans-serif
;
92 font-family: sans-serif
;
94 border-top: 2px solid silver
;
100 padding-bottom: 0.5em;
104 padding-bottom: 0.5em;
108 div
.tableblock
, div
.imageblock
, div
.exampleblock
, div
.verseblock
,
109 div
.quoteblock
, div
.literalblock
, div
.listingblock
, div
.sidebarblock
,
110 div
.admonitionblock
{
113 margin-bottom: 1.5em;
115 div
.admonitionblock
{
117 margin-bottom: 2.5em;
120 div
.content
{ /* Block element content. */
124 /* Block element titles. */
125 div
.title
, caption
.title
{
126 font-family: sans-serif
;
130 margin-bottom: 0.5em;
136 td div
.title:first-child
{
139 div
.content div
.title:first-child
{
142 div
.content
+ div
.title
{
146 div
.sidebarblock
> div
.content
{
148 border: 1px solid silver
;
155 div
.listingblock
> div
.content
{
156 border: 1px solid silver
;
161 div
.quoteblock
> div
.content
{
168 div
.verseblock
+ div
.attribution
{
172 div
.admonitionblock
.icon
{
176 text-decoration: underline
;
178 padding-right: 0.5em;
180 div
.admonitionblock td
.content
{
182 border-left: 2px solid silver
;
185 div
.exampleblock
> div
.content
{
186 border-left: 2px solid silver
;
190 div
.verseblock div
.content
{
194 div
.imageblock div
.content
{ padding-left: 0; }
195 div
.imageblock img
{ border: 1px solid silver
; }
196 span
.image img
{ border-style: none
; }
200 margin-bottom: 0.8em;
212 list-style-position: outside
;
215 list-style-type: lower-alpha
;
218 div
.tableblock
> table
{
219 border: 3px solid
#527bbd;
222 font-family: sans-serif
;
231 margin-bottom: 0.8em;
239 padding-right: 0.8em;
246 div#footer-badges
{ display: none
; }
251 font-family: sans-serif
;
255 margin-bottom: 0.1em;
258 div
.toclevel1
, div
.toclevel2
, div
.toclevel3
, div
.toclevel4
{
274 include1::./stylesheets
/xhtml11-manpage
.css
[]
275 /* Workarounds for IE6's broken and incomplete CSS2. */
277 div
.sidebar-content
{
279 border: 1px solid silver
;
282 div
.sidebar-title
, div
.image-title
{
283 font-family: sans-serif
;
286 margin-bottom: 0.5em;
289 div
.listingblock div
.content
{
290 border: 1px solid silver
;
295 div
.quoteblock-content
{
299 div
.exampleblock-content
{
300 border-left: 2px solid silver
;
304 /* IE6 sets dynamically generated links as visited. */
305 div#toc
a:visited
{ color: blue
; }
307 <title>git-tar-tree(
1)
</title>
312 git-tar-tree(
1) Manual Page
315 <div class=
"sectionbody">
317 Create a tar archive of the files in the named tree object
322 <div class=
"sectionbody">
323 <div class=
"para"><p><em>git tar-tree
</em> [--remote=
<repo
>]
<tree-ish
> [
<base
> ]
</p></div>
325 <h2 id=
"_description">DESCRIPTION
</h2>
326 <div class=
"sectionbody">
327 <div class=
"para"><p>THIS COMMAND IS DEPRECATED. Use
<em>git archive
</em> with
<tt>--format=tar
</tt>
328 option instead (and move the
<base
> argument to
<tt>--prefix=base/
</tt>).
</p></div>
329 <div class=
"para"><p>Creates a tar archive containing the tree structure for the named tree.
330 When
<base
> is specified it is added as a leading path to the files in the
331 generated tar archive.
</p></div>
332 <div class=
"para"><p><em>git tar-tree
</em> behaves differently when given a tree ID versus when given
333 a commit ID or tag ID. In the first case the current time is used as
334 modification time of each file in the archive. In the latter case the
335 commit time as recorded in the referenced commit object is used instead.
336 Additionally the commit ID is stored in a global extended pax header.
337 It can be extracted using
<em>git get-tar-commit-id
</em>.
</p></div>
339 <h2 id=
"_options">OPTIONS
</h2>
340 <div class=
"sectionbody">
341 <div class=
"vlist"><dl>
347 The tree or commit to produce tar archive for. If it is
348 the object name of a commit object.
356 Leading path to the files in the resulting tar archive.
360 --remote=
<repo
>
364 Instead of making a tar archive from local repository,
365 retrieve a tar archive from a remote repository.
370 <h2 id=
"_configuration">CONFIGURATION
</h2>
371 <div class=
"sectionbody">
372 <div class=
"vlist"><dl>
378 This variable can be used to restrict the permission bits of
379 tar archive entries. The default is
0002, which turns off the
380 world write bit. The special value
"user" indicates that the
381 archiving user's umask will be used instead. See umask(
2) for
387 <h2 id=
"_examples">EXAMPLES
</h2>
388 <div class=
"sectionbody">
389 <div class=
"vlist"><dl>
391 git tar-tree HEAD junk | (cd /var/tmp/
&& tar xf -)
395 Create a tar archive that contains the contents of the
396 latest commit on the current branch, and extracts it in
397 <tt>/var/tmp/junk
</tt> directory.
401 git tar-tree v1.4
.0 git-
1.4.0 | gzip
>git-
1.4.0.tar.gz
405 Create a tarball for v1.4
.0 release.
409 git tar-tree v1.4
.0^{tree} git-
1.4.0 | gzip
>git-
1.4.0.tar.gz
413 Create a tarball for v1.4
.0 release, but without a
414 global extended pax header.
418 git tar-tree --remote=example.com:git.git v1.4
.0 >git-
1.4.0.tar
422 Get a tarball v1.4
.0 from example.com.
426 git tar-tree HEAD:Documentation/ git-docs
> git-
1.4.0-docs.tar
430 Put everything in the current head's Documentation/ directory
431 into
<em>git-
1.4.0-docs.tar
</em>, with the prefix
<em>git-docs/
</em>.
436 <h2 id=
"_author">Author
</h2>
437 <div class=
"sectionbody">
438 <div class=
"para"><p>Written by Rene Scharfe.
</p></div>
440 <h2 id=
"_documentation">Documentation
</h2>
441 <div class=
"sectionbody">
442 <div class=
"para"><p>Documentation by David Greaves, Junio C Hamano and the git-list
<git@vger.kernel.org
>.
</p></div>
444 <h2 id=
"_git">GIT
</h2>
445 <div class=
"sectionbody">
446 <div class=
"para"><p>Part of the
<a href=
"git.html">git(
1)
</a> suite
</p></div>
449 <div id=
"footer-text">
450 Last updated
2010-
09-
18 23:
57:
00 UTC