Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
|
#!/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
|
|
|
git checkout $CIBLE
|
|
|
git pull
|
|
|
fi
|