无法卷曲git标签(unable to curl a git tag)

编程入门 行业动态 更新时间:2024-10-26 11:22:25
无法卷曲git标签(unable to curl a git tag)

我想通过命令行卷曲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 zx

You 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.tar

On a public repo:

curl -L https://github.com/pinard/Pymacs/tarball/v0.24-beta2 | tar zx

更多推荐

本文发布于:2023-08-03 07:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1385373.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:卷曲   标签   git   tag   unable

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!