Monday, April 21, 2014
A better way to zip archive a git project
Why have I been zipping up my git projects with the .git directory intact? Here's the right way:
git archive my_branch --format zip -o ../myproject.zip
Creates a zip file from branch my_branch and leaves out the .git files. Useful for upload to build.phonegap.com.
Post a Comment
Post Comments (Atom)