Git development
 help / color / mirror / Atom feed
From: Alex Riesen <raa.lkml@gmail.com>
To: Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
Cc: Julian Phillips <julian@quantumfyre.co.uk>,
	Junio C Hamano <gitster@pobox.com>,
	git@vger.kernel.org
Subject: Re: Exporting a tree from a repository
Date: Sun, 15 Jul 2007 11:15:10 +0200	[thread overview]
Message-ID: <20070715091510.GC2568@steel.home> (raw)
In-Reply-To: <8e04b5820707150012r13c5db69g96b97d910dc1b137@mail.gmail.com>

Ciprian Dorin Craciun, Sun, Jul 15, 2007 09:12:08 +0200:
>    Now for the export thing... I know that I can just clone the
> remote repository and then remove the .git folder, but for my purpose
> I just want to have the HEAD tree downloaded, without any history...
> And by using git clone I end up downloading much more than I actually
> need.

Well, if you have a ssh access to remote repository, you can run
git-archive there:

    $ ssh -n 'cd /dir/repo/.git && git --bare archive --prefix=<local-path> <tree>' |tar xf -

or even simplier:

    $ git archive --remote=<remote-host:remote-path> --prefix=<local-path>/ <tree> |tar xf -

(for whatever reason it does not work with just git-daemon).

  reply	other threads:[~2007-07-15  9:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-14 20:25 Exporting a tree from a repository Ciprian Dorin Craciun
2007-07-14 21:46 ` Julian Phillips
2007-07-15  6:12   ` Junio C Hamano
2007-07-15  7:12   ` Ciprian Dorin Craciun
2007-07-15  9:15     ` Alex Riesen [this message]
2007-07-15  7:17 ` martin f krafft

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=20070715091510.GC2568@steel.home \
    --to=raa.lkml@gmail.com \
    --cc=ciprian.craciun@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=julian@quantumfyre.co.uk \
    /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