Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法存档git存储库_Git_Gitosis - Fatal编程技术网

无法存档git存储库

无法存档git存储库,git,gitosis,Git,Gitosis,我可以使用以下命令克隆存储库: $ git clone ssh://gitosis@myhost.com:22222/MyRepo.git Initialized empty Git repository in /home/andrew/MyRepo/.git/ ... 但是,我无法将其存档: $ git archive --remote ssh://gitosis@myhost.com:22222/MyRepo.git master ERROR:gitosis.serve.main:Unkn

我可以使用以下命令克隆存储库:

$ git clone ssh://gitosis@myhost.com:22222/MyRepo.git
Initialized empty Git repository in /home/andrew/MyRepo/.git/
...
但是,我无法将其存档:

$ git archive --remote ssh://gitosis@myhost.com:22222/MyRepo.git master
ERROR:gitosis.serve.main:Unknown command denied
为什么
clone
的行为会与
archive
有所不同?

git-archive-remote
请求远程为您执行归档,这是Gitosis不支持的。出现了一个添加此功能的