我想通过命令行卷曲git标签:
curl -O http://someurl
但是当我试图解压文件时,它被打破了? 有谁知道这是什么问题?
I want to curl a git tag through the command line:
curl -O http://someurl
But when I try to untar the file it is broken? Do anyone know what is the problem?
最满意答案
你可以从git repos托管服务(如GitHub) curl git标签,因为它有一个专用的tarball服务 (如Nodeload ),它提供tar(或zip)。 但是没有任何其他git repo那里有相同的服务。
有关使用GitHub(或此curl GitHub教程 )的具体示例,请参阅“ 从Private Repo下载Git归档tar包时遇到问题 ”:
curl -sL --user "${username}:${password}" https://github.com/$account/$repo/tarball/$tag_name > tarball.tar在公共回购 :
curl -L https://github.com/pinard/Pymacs/tarball/v0.24-beta2 | tar zxYou can curl a git tag from a git repos hosting service like GitHub, because it has a dedicated tarball service (like Nodeload) which provides tar (or zip). But not any other git repo out there has that same service.
See "Having trouble downloading Git archive tarballs from Private Repo" for a concrete example with GitHub (or this curl GitHub tutorial):
curl -sL --user "${username}:${password}" https://github.com/$account/$repo/tarball/$tag_name > tarball.tarOn a public repo:
curl -L https://github.com/pinard/Pymacs/tarball/v0.24-beta2 | tar zx更多推荐
发布评论