Como obter o ramo Git atual
git branch --show-current
Cute Crossbill
git branch --show-current
git rev-parse --abbrev-ref HEAD