Explorar o código

add git-pushb

raylu %!s(int64=9) %!d(string=hai) anos
pai
achega
a92ac6c935
Modificáronse 1 ficheiros con 10 adicións e 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