Mac Developer Library Developer


This manual page is part of Xcode Tools version 5.0

To obtain these tools:

If you are running a version of Xcode Tools other than 5.0, view the documentation locally:

  • In Xcode

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • To learn how the manual is organized or to learn about command syntax, read the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Developer Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.

GIT-TAR-TREE(1)                                  Git Manual                                  GIT-TAR-TREE(1)

       git-tar-tree - Create a tar archive of the files in the named tree object

       git tar-tree [--remote=<repo>] <tree-ish> [ <base> ]

       THIS COMMAND IS DEPRECATED. Use git archive with --format=tar option instead (and move the <base>
       argument to --prefix=base/).

       Creates a tar archive containing the tree structure for the named tree. When <base> is specified it
       is added as a leading path to the files in the generated tar archive.

       git tar-tree behaves differently when given a tree ID versus when given a commit ID or tag ID. In the
       first case the current time is used as modification time of each file in the archive. In the latter
       case the commit time as recorded in the referenced commit object is used instead. Additionally the
       commit ID is stored in a global extended pax header. It can be extracted using git get-tar-commit-id.

           The tree or commit to produce tar archive for. If it is the object name of a commit object.

           Leading path to the files in the resulting tar archive.

           Instead of making a tar archive from local repository, retrieve a tar archive from a remote

           This variable can be used to restrict the permission bits of tar archive entries. The default is
           0002, which turns off the world write bit. The special value "user" indicates that the archiving
           user's umask will be used instead. See umask(2) for details.

       git tar-tree HEAD junk | (cd /var/tmp/ && tar xf -)
           Create a tar archive that contains the contents of the latest commit on the current branch, and
           extracts it in /var/tmp/junk directory.

       git tar-tree v1.4.0 git-1.4.0 | gzip >git-1.4.0.tar.gz
           Create a tarball for v1.4.0 release.

       git tar-tree v1.4.0^{tree} git-1.4.0 | gzip >git-1.4.0.tar.gz
           Create a tarball for v1.4.0 release, but without a global extended pax header.

       git tar-tree v1.4.0 >git-1.4.0.tar
           Get a tarball v1.4.0 from

       git tar-tree HEAD:Documentation/ git-docs > git-1.4.0-docs.tar
           Put everything in the current head's Documentation/ directory into git-1.4._-docs.tar, with the
           prefix git-docs/.

       Part of the git(1) suite

Git 1.8.3                                        05/24/2013                                  GIT-TAR-TREE(1)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.