how to check in which brach we are in git

Shell
git branch -a # it will show an astrick * like *master
git branch --show-current # source == git remote --help
Source

Also in Shell: