Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • What was the issue with either a read-tree/checkout-index or archive solution? As far as I can tell you've done the equivalent of something like mkdir -p "$2" && git --git-dir="$1" archive HEAD | tar -x -C "$2" but somewhat longer winded. Commented Jul 17, 2009 at 10:16
  • 1
    I couldn't get read-tree to work from a remote repository, and the archive solution doesn't work with github. Commented Jul 17, 2009 at 14:34
  • Yes with archive get a Invalid command: 'git-upload-archive '... error and i dont have core.gitProxy config option and the GIT_PROXY_COMMAND environment variable set Commented Nov 26, 2014 at 12:05