Como obter o ramo Git atual
git branch --show-current
Cute Crossbill
git branch --show-current
//all branch and current branch
git branch
//current branch
git branch --show-current
//when on branch 'dev' make branch 'myFeature' off of 'dev'
git checkout -b myFeature dev
$ git checkout -b myFeature dev
git checkout -b <branch-name>
git rev-parse --abbrev-ref HEAD