1

I want to download a sub tree content from remote Git repository as a zip archive without versioning information, I don’t want to clone a local repo or even a do a fetch… I know that github (and gitblit...) have their own support for this but I am looking for a generic git command, it looks like the git archive should be a perfect fit but I was not able to run it successfully with the -–remote flag… I also didn’t find working examples with the --remote flag.

git archive --format=zip --remote=http://myserver:8080/r/RepoTest.git -o myfile.zip HEAD

I get:

fatal: Operation not supported by protocol. Unexpected end of command stream

Thanks!

BTW: I am using Git Bash from Windows

Doron Levi
  • 458
  • 4
  • 16
  • 1
    possible duplicate of [Do a "git export" (like "svn export")?](http://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export) – nwinkler Mar 03 '15 at 12:05
  • http://stackoverflow.com/questions/11258599/git-archive-fatal-operation-not-supported-by-protocol – CodeWizard Mar 03 '15 at 12:53
  • In regards to duplicates... I am using SCM Manager which is a repository with smart http according to them https://groups.google.com/forum/#!searchin/scmmanager/smart$20http%7Csort:relevance/scmmanager/JMQB-KCWI44/h7YR1N6RPpEJ – Doron Levi Mar 03 '15 at 14:08
  • 1
    BTW the suggestion from the above (I have seen them) – either don’t work or require clone first, a thing I want to avoid. – Doron Levi Mar 03 '15 at 14:15

0 Answers0