git/list[1] front-page[2] threads[3] people[4] search[5] about
 

export one commit id from a repository

From
GGelonida <gelonida@gmail.com>
Date
May 22, 2010, 13:41 UTC
Message-ID
<ht8mu6$hjo$1@dough.gmane.org>
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.
Next: Abhijit Menon-Sen
Message 1 of 3 in “export one commit id from a repository”
  1. GelonidaMay 22, 2010
  2. Abhijit Menon-SenMay 22, 2010
  3. GelonidaMay 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.