git-pushb 170 B

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