This will show all the local branches of your repository. The starred branch is your current branch.
git rev-parse --abbrev-ref HEAD
This will display the name of current branch.
git symbolic-ref HEAD
This will display which branch head the given symbolic ref refers to and output its path.
git symbolic-ref --short HEAD
This will display the short branch name instead of full path.At last you can also use "git status" which will tell you whats your current branch.
Please Like and Share the Blog, if you find it interesting and helpful.