Comment obtenir la branche git actuelle
git branch --show-current
Cute Crossbill
git branch --show-current
git branch -a # it will show an astrick * like *master
git branch --show-current # source == git remote --help
//all branch and current branch
git branch
//current branch
git branch --show-current
git rev-parse --abbrev-ref HEAD
git rev-parse --abbrev-ref HEAD
##Current branch
echo $(git branch --show-current 2> /dev/null)