* export one commit id from a repository
@ 2010-05-22 13:41 Gelonida
2010-05-22 13:50 ` Abhijit Menon-Sen
0 siblings, 1 reply; 3+ messages in thread
From: Gelonida @ 2010-05-22 13:41 UTC (permalink / raw)
To: git
Hi,
I'm having a bare git repository on a server.
I'd like to be able to concurrently (multiuser) create tar files from
certain commmit ids.
How can I do this most efficiently.
How I do this today:
- ssh to the server.
- clone the bare repository to a temp directory.
- checkout a certain version.
- remove the .git directory
- tar it up
- scp it to my local host
- remove the temp directory and the tar file
svn had the command 'export'
Thanks a lot for help or pointing me to existing scripts / tools.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: export one commit id from a repository
2010-05-22 13:41 export one commit id from a repository Gelonida
@ 2010-05-22 13:50 ` Abhijit Menon-Sen
2010-05-23 10:08 ` Gelonida
0 siblings, 1 reply; 3+ messages in thread
From: Abhijit Menon-Sen @ 2010-05-22 13:50 UTC (permalink / raw)
To: Gelonida; +Cc: git
At 2010-05-22 15:41:26 +0200, gelonida@gmail.com wrote:
>
> I'd like to be able to concurrently (multiuser) create tar files from
> certain commmit ids.
git archive --prefix=foo/ $sha1 | gzip > foo.tar.gz
See git-archive(1).
-- ams
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: export one commit id from a repository
2010-05-22 13:50 ` Abhijit Menon-Sen
@ 2010-05-23 10:08 ` Gelonida
0 siblings, 0 replies; 3+ messages in thread
From: Gelonida @ 2010-05-23 10:08 UTC (permalink / raw)
To: git
Thanks a lot for your answer.
That's what I was looking for :-)
Abhijit Menon-Sen wrote:
> At 2010-05-22 15:41:26 +0200, gelonida@gmail.com wrote:
>> I'd like to be able to concurrently (multiuser) create tar files from
>> certain commmit ids.
>
> git archive --prefix=foo/ $sha1 | gzip > foo.tar.gz
>
> See git-archive(1).
>
> -- ams
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-23 10:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-22 13:41 export one commit id from a repository Gelonida
2010-05-22 13:50 ` Abhijit Menon-Sen
2010-05-23 10:08 ` Gelonida
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).