export one commit id from a repository

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

export one commit id from a repository

From: Gelonida <hidden>
Date: 2016-06-15 22:48:50

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.

Re: export one commit id from a repository

From: Abhijit Menon-Sen <hidden>
Date: 2016-06-15 22:48:50

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

Re: export one commit id from a repository

From: Gelonida <hidden>
Date: 2016-06-15 22:48:50

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:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help