git-pushb 202 B

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