0

Is there any way to use the git archive command without sending all the files to a .zip? I need it unzipped, but it takes awhile if I just run that command. Thoughts?

animuson
  • 53,861
  • 28
  • 137
  • 147
SSEMember
  • 2,103
  • 4
  • 20
  • 28
  • possible duplicate of [How to do a "git export" (like "svn export")](http://stackoverflow.com/questions/160608/how-to-do-a-git-export-like-svn-export) (The first example) Just realise, that you are the one, who asked the very similar question short before :D http://stackoverflow.com/questions/11001909/save-old-git-repository-versions – KingCrunch Jun 12 '12 at 18:55
  • Yea, after reading through that question a bit more, it seems there is no efficient way to do that. This is more of a followup on the last question I asked. Thanks anyway, no point in answering. – SSEMember Jun 12 '12 at 19:08
  • @SSEMember, what's wrong with using `tar` format and piping to `tar`? `tar` does not compress anything, just archives so while there is certain overhead (copying in, copying out), it's lower than for zipping. Moreover, the manual for `git checkout-index` (also suggested in the discussion @KingCrunch pointed at) contains an example of how to do Subversion-style export, so it looks like a "blessed" way to do what you need. – kostix Jun 12 '12 at 22:14

0 Answers0