I\'m in the process of setting up a deployment script. The basic process is:
This should do the trick: https://github.com/meitar/git-archive-all.sh/wiki