See deploy.sh. Typical usage: GIT_DEPLOY_DIR=<dir> GIT_DEPLOY_BRANCH=gh-pages deploy.sh -v For ESP, I am using the following command: GIT_DEPLOY_DIR=Xcode/ESP/doc/html GIT_DEPLOY_BRANCH=gh-pages deploy.sh -v