Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
|
#!/bin/env bash
|
|
|
|
|
|
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
|
|
|
|
|
|
git_01_quick_commit.sh
|
|
|
|
|
|
if [ ! "$CIBLE" = "$CUR_BRANCH" ];
|
|
|
then
|
|
|
git checkout $CIBLE
|
|
|
git pull
|
|
|
fi
|