raylu 9 anni fa
parent
commit
a92ac6c935
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 10 0
      git-pushb

+ 10 - 0
git-pushb

@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+set -e
+
+BRANCH=`git symbolic-ref --short HEAD`
+if [ $BRANCH == master ]; then
+  echo "not pushing $BRANCH"
+  exit 1
+fi
+git push -u origin $BRANCH