From: Alex Riesen Date: Sun, 15 Jul 2007 09:15:10 GMT Subject: Re: Exporting a tree from a repository Message-ID: <20070715091510.GC2568@steel.home> 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= ' |tar xf - or even simplier: $ git archive --remote= --prefix=/ |tar xf - (for whatever reason it does not work with just git-daemon).