Explorar el Código

add git-pushb

raylu hace 9 años
padre
commit
a92ac6c935
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  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