我可以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)
任何人都知道为什么或我做错了什么?
您可以使用 github 的 svn 支持:
svn export https://github.com/user/project/trunk
Run Code Online (Sandbox Code Playgroud)
更多细节在这里:
我只需按照git clone
您的描述运行,然后删除.git
分散在克隆目录中的目录。
$ find puppet-heat/ -name '.git' -exec rm -fr {} +
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
7553 次 |
最近记录: |