Thread (4 messages) flat view 4 messages, 4 authors, 2016-06-15

Re: Decompressing a tree to a location other than the working directory

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:15

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help