Parcourir la source

add git-pushb

raylu il y a 9 ans
Parent
commit
a92ac6c935
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  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