Re: Basic git-archive --remote question
From: Carlos Martín Nieto <hidden>
Date: 2016-06-15 22:57:55
On Mon, 2013-06-24 at 15:53 -0400, Greg Freemyer wrote:
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:quoted
git archive --format=tar --remote=github.com:dkovar/analyzeMFT.git v2.0.4Permission denied (publickey). fatal: The remote end hung up unexpectedly
Assuming you haven't set up any ssh rules for the github.com host, you're trying to log in with ssh with your local username, which isn't going to work.
quoted
git archive --format=tar --remote=git://github.com/dkovar/analyzeMFT v2.0.4fatal: remote error Your Git client has made an invalid request: 003agit-upload-archive /dkovar/analyzeMFT
This is the right format. GitHub doesn't allow remote archive requests, which is why it's complaining. If you want a tarball from GitHub, you need to download over HTTP from the links they provide (which you can find e.g. through the web UI).
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
Using git as the ssh user is the right thing (if you want to talk git over ssh) with GitHub and a few other sites/hosting programs, as your public key is used to determine which user is trying to connect without giving each user an account on the underlying OS. cmn