git branch -a # it will show an astrick * like *master git branch --show-current # source == git remote --help
git rev-parse --abbrev-ref HEAD
git rev-parse --abbrev-ref HEAD // To check the current branch