I\'m in the process of setting up a deployment script. The basic process is:
I use this python package https://github.com/Kentzo/git-archive-all. You can install it by using
pip install git-archive-all
On OSX, you can install it also using brew install git-archive-all
brew install git-archive-all