BRANCH=master
if [ $# != 0 ]; then
    BRANCH="$1"
fi

git checkout "${BRANCH}" && git pull && gulp build --target online && rsync build/** dist -r
