Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 

28 wiersze
435 B

#!/bin/env bash
DIRNAME=`dirname $0`
git_current_branch() {
 	git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
CUR_BRANCH=`git_current_branch`
CIBLE=$1
if [ "$CIBLE" == "" ]
then
	CIBLE=$CUR_BRANCH
fi
$DIRNAME/01_quick_commit.sh
if [ ! "$CIBLE" = "$CUR_BRANCH" ];
then
	$DIRNAME/00_checkout_branch.sh $CIBLE
fi
git push all
if [ ! "$CIBLE" = "$CUR_BRANCH" ];
then
	$DIRNAME/00_checkout_branch.sh $CUR_BRANCH
fi