Created
February 22, 2012 11:55
-
-
Save modsaid/1884493 to your computer and use it in GitHub Desktop.
Exporting files out of a git repo like svn export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git archive master | tar -x -C /somewhere/else | |
OR | |
git archive --format zip --output /full/path/to/zipfile.zip master | |
Ref: http://stackoverflow.com/questions/160608/how-to-do-a-git-export-like-svn-export |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment