git archive fatal: Operation not supported by protocol

前端 未结 2 1896
青春惊慌失措
青春惊慌失措 2021-01-01 10:00

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         


        
相关标签:
2条回答
  • 2021-01-01 10:19

    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.

    0 讨论(0)
  • 2021-01-01 10:22

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

    git archive --format=zip --remote=git://path_to_repository
    
    0 讨论(0)
提交回复
热议问题