git archive fatal: Operation not supported by protocol

北战南征 提交于 2019-12-01 02:09:36
J-16 SDiZ

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

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.

user4931107

you can't use git achieve with http! only git protocol. i.e.

git archive --format=zip --remote=git://path_to_repository
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!