git branch --show-current
it worked for me all the time and it shows only the current branch
git branch
will show the list of the branches with *your_branch_name
Hope it will help.
git branch --show-current
it worked for me all the time and it shows only the current branch
git branch
will show the list of the branches with *your_branch_name
Hope it will help.