#!/usr/bin/env bash set -euo pipefail BRANCH=`git symbolic-ref --short HEAD` if [[ $BRANCH == master || $BRANCH == main ]]; then echo "not pushing $BRANCH" exit 1 fi git push -u origin $BRANCH $*