From: Jonathan Nieder <jrnieder@gmail.com>
To: Joshua Shrader <jshrader83@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Decompressing a tree to a location other than the working directory
Date: Fri, 6 Aug 2010 13:43:45 -0500 [thread overview]
Message-ID: <20100806184345.GB2985@burratino> (raw)
In-Reply-To: <AANLkTi=RjcQ_-PNUt781jhYEA-8krqXpdHRenVyR_Rc4@mail.gmail.com>
Joshua Shrader wrote:
> git checkout allows one to checkout a particular version of a certain
> path in the working directory. Are there accessible plumbing commands
> that can be used to accomplish the same thing, but change the target
> directory.
I don’t know if it is plumbing, but "git archive" is very useful for
that.
$ git archive HEAD^:Documentation | (cd elsewhere && tar xf -)
Hope that helps,
Jonathan
next prev parent reply other threads:[~2010-08-06 18:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-06 18:43 Decompressing a tree to a location other than the working directory Joshua Shrader
2010-08-06 18:43 ` Jonathan Nieder [this message]
2010-08-07 3:10 ` Michael Witten
2010-08-06 19:58 ` Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100806184345.GB2985@burratino \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=jshrader83@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).