Git archive fatal: Operation not supported by protocol

gitgithub

I can do git clone like so …

 git clone https://github.com/stackforge/puppet-heat.git

… with no problems. But I want to exclude all the git meta stuff that comes with the cloning, so I figured I would use git archive but I get this error:

$ git archive --remote=https://github.com/stackforge/puppet-heat.git 
fatal: Operation not supported by protocol.

Anyone know why or what I am doing wrong?

Best Answer

I would simply run the git clone as you've described and then delete the .git directories that are dispersed throughout the cloned directory.

$  find puppet-heat/ -name '.git' -exec rm -fr {} +
Related Question