Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 3 down vote accepted

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 {} +
share|improve this answer
    
Thanks. I found the "Download Zip" link on their github and I just did a wget https://github.com/stackforge/puppet-heat/archive/stable/hav‌​ana.zip and unzipped it. – Red Cricket Jun 11 '14 at 0:58

You can use github's svn support:

svn export https://github.com/user/project/trunk

More details here:

http://stackoverflow.com/questions/9609835/git-export-from-github-remote-repository

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.