Re: Passing commit IDs to git-archive
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 9, 2012, 22:34 UTC
- Message-ID
- <7vhaxx4d5s.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <8fb14091-99dc-4383-9cab-5bf508e0a554@mail>
Stephen Bash <bash@genarts.com> writes:
Show 7 quoted lines
> Unfortunately I just attempted > > warp:bar bash$ git archive --remote=file:///Users/bash/Development/foo \ > --output=test.tgz 3b9e49b \ > path/to/subdir > > Thoughts? Thanks in advance!
If you are always fetching from that same location, perhaps doing this only once
git clone file:///...
and then every time you want to use the test.tgz, do something like
git fetch
git archive --output=test.tgz 3b9e49b path/to/subdiror something like that?