Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 

37 linhas
678 B

#!/bin/env bash
echo "Il vaudrait mieux passer par https://git.topisto.net/topisto/suivi_projets"
read -p "Are you sure ?" -n 1 -r
echo    # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
    # do dangerous stuff
    git_01_quick_commit.sh
    courante=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | sed 's:(::g' | sed 's:)::g'`
    cible=develop
    if [ "$courante" = "develop" ]
    then
	    cible=hotfix
    fi
    if [ "$courante" = "hotfix" ]
    then
	    cible=production
    fi
    echo merge $courante into $cible
    git push
    git checkout $cible
    git merge $courante
    git push
    git checkout $courante
fi