git存档致命:协议不支持的操作

Red*_*ket 8 git github

我可以git clone这样做...

 git clone https://github.com/stackforge/puppet-heat.git
Run Code Online (Sandbox Code Playgroud)

...没有问题。但是我想排除克隆附带的所有 git meta 内容,所以我想我会使用git archive但我收到此错误:

$ git archive --remote=https://github.com/stackforge/puppet-heat.git 
fatal: Operation not supported by protocol.
Run Code Online (Sandbox Code Playgroud)

任何人都知道为什么或我做错了什么?

Sam*_*ler 6

您可以使用 github 的 svn 支持:

svn export https://github.com/user/project/trunk
Run Code Online (Sandbox Code Playgroud)

更多细节在这里:

/sf/ask/672688481/


slm*_*slm 4

我只需按照git clone您的描述运行,然后删除.git分散在克隆目录中的目录。

$  find puppet-heat/ -name '.git' -exec rm -fr {} +
Run Code Online (Sandbox Code Playgroud)