export one commit id from a repository
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.
Quoted 3 lines · At 2010-05-22 15:41:26 +0200, [email protected] 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
Thanks a lot for your answer.
That's what I was looking for :-)
Quoted 9 lines · Abhijit Menon-Sen
Quoted 2 lines · At 2010-05-22 15:41:26 +0200, [email protected] 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