I want to twist the git tag through the command line:
curl -O http://someurl
But when I try to overclock a file, is it broken? Does anyone know what the problem is?
The curl a git tag is from a git reposition service such as GitHub because it has a dedicated tarball service (like Nodeload ) that provides tar (or zip). But no other git repo out there has the same service.
curl
See “ Failed to load git archive archives from Private Repo ” for a specific example with GitHub (or this curl GitHub Tutorial ):
curl -sL --user "${username}:${password}" https://github.com/$account/$repo/tarball/$tag_name > tarball.tar
At a public repo :
curl -L https://github.com/pinard/Pymacs/tarball/v0.24-beta2 | tar zx
git itself does not provide an http interface. The solution is to use git archive instead
git
git archive
git clone http://example.com/myrepo.git git archive mytag > myrepo-mytag.tar.gz
If you need to extract only the minimum value,
git init temp cd temp git remote add x http://example.com/repo.git git fetch x sometag --depth=1 git archive FETCH_HEAD > ../repo.sometag.tgz cd .. rm -rf temp
will do ya