Como obter o ramo Git atual
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 branch #starred one is your current branch
git rev-parse --abbrev-ref HEAD
checking current branch