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

Basic git-archive --remote question

From
GFGreg Freemyer <greg.freemyer@gmail.com>
Date
Jun 24, 2013, 19:53 UTC
Message-ID
<CAGpXXZJuC09t8-5d=p4KNs9rQ-S347eBNuKcKWFhXZTnkLW0sA@mail.gmail.com>
In-Reply-To
<CAGpXXZJifb1KmR8=VZVW+1MKjyo7HOq=OgU_rcHs-vc5ezfG6w@mail.gmail.com>

I'm trying to create a tarball from a git tag and I can't get the syntax right. The documentation is not very clear.

Can someone help me?
== details
git v1.8.1.4
The upstream git repo is at: https://github.com/dkovar/analyzeMFT
Here's a few attempts using git as the protocol:
> git archive --format=tar --remote=github.com:dkovar/analyzeMFT.git v2.0.4

Permission denied (publickey). fatal: The remote end hung up unexpectedly

> git archive --format=tar --remote=git://github.com/dkovar/analyzeMFT v2.0.4
fatal: remote error
   Your Git client has made an invalid request:
   003agit-upload-archive /dkovar/analyzeMFT
> git archive --format=tar --remote=//github.com/dkovar/analyzeMFT v2.0.4

remote: fatal: '//github.com/dkovar/analyzeMFT.git' does not appear to be a git repository fatal: sent error to the client: git upload-archive: archiver died with error remote: git upload-archive: archiver died with error

The github page also says I can use ssh with git as the user, but that complains I don't have the private key (which I don't):

git archive --format=tar --remote=ssh://git@github/com/dkovar/analyzeMFT.git v2.0.4

Thanks Greg

Next: Carlos Martín Nieto
Message 1 of 3 in “Basic git-archive --remote question”
  1. Greg FreemyerJun 24, 2013
  2. Carlos Martín NietoJun 25, 2013
  3. Jeff KingJun 26, 2013

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.