Export and package git project


Here some tips on exporting a Git project. The command we will use is `git-archive`.

To export all files in a branch and packaging as ZIP file, issue this command at root of project.

$ git archive --format zip --output=/PATH/TO/OUTPUT/FILE BRANCH

For example:

$ git archive --format zip --output=/home/petehouston/tmp/awesome-project-master.zip master

The above command will export all files in branch master and package into a ZIP file awesome-project-master.zip at location /home/petehouston/tmp

You can use the alternative command to archive, like following:

$ git archive -o awesome-project-master.zip HEAD