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.

Required fields*

6
  • 3
    This command does not work with submodules, see stackoverflow.com/questions/1591387/… Commented Jan 13, 2010 at 14:56
  • 3
    But git archive also removes the version control, so you can't just do another git checkout to upgrade to the next tag. Commented Apr 6, 2011 at 21:37
  • 10
    Yes you lose version control but the time git archive saves compared to git clone is ABSOLUTELY UNBELIEVABLE! +1 Commented Mar 21, 2013 at 11:28
  • This is SO CLOSE to what I want, except that git archive is asking me for a password when all I want to do is download from a public repo. How can I make it use http instead of ssh? Commented Feb 21, 2014 at 18:26
  • 1
    This fails with the fatal: Operation not supported by protocol. and Unexpected end of command stream errors. Alternatively, it can also return the fatal: The remote end hung up unexpectedly error. Commented Mar 27, 2014 at 21:41