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