#!/bin/bash
set -e # exit with nonzero exit code if anything fails

REVISION=`git rev-parse --abbrev-ref HEAD`

if [ "$REVISION" == "master" ]; then 
	git push origin gh-pages
fi

#!/bin/bash
set -e # exit with nonzero exit code if anything fails

REVISION=`git rev-parse --abbrev-ref HEAD`

if [ "$REVISION" == "master" ]; then 
	git push --force origin gh-pages
fi

Set the system to force push gh-pages
Set the system to force push gh-pages
