The answer to this was more difficult to find than it should have been. The best answer is on stackoverflow here.
In short, use the
In short, use the
git archive command:git archive --remote=git@github.com:foo/bar.git --prefix=path/to/ HEAD:path/to/ | tar xvf -
- For this to work the owner of the git server needs to have enabled upload-archive (
git config daemon.uploadarch true) - You need
tar -xvfbecause the output is in tar form
Comments
Post a Comment