git archive fatal:协议不支持的操作 [英] git archive fatal: Operation not supported by protocol

查看:499
本文介绍了git archive fatal:协议不支持的操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图检出远程git存储库的一部分。按照这里的建议, p>

I'm trying to checkout part of remote git repository. As recommended here, with help of command

git archive --format=zip --remote=http://path_to_repository

但我收到错误消息:

But I'm getting error message:

fatal: Operation not supported by protocol.
Unexpected end of command stream

Git不支持使用http协议执行此操作吗?这是托管环境或git本身的问题?任何方向将有所帮助,谢谢。

Git is not supporting this operation with http protocol? Thats a problem of hosting environment or git itself? Any directions would help, thanks.

推荐答案

git archive 一个支持git协议的服务器(即git服务器, smart-http 和ssh服务器) 。

git archive can work with a server with git protocol support (i.e. git server, smart-http and ssh server).

在你的情况下,无论你的git是否过时,或者服务器是虚假的http服务器(普通的http服务器,没有智能git支持)。您需要克隆存储库并从那里存档。

In your case, either your git is too old, or the server is dumb http server (normal http server, without "smart" git support). You need to clone the repository and archive from there.

这篇关于git archive fatal:协议不支持的操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆