Quantcast
Channel: How do I get the current branch name in Git? - Stack Overflow
Viewing all articles
Browse latest Browse all 96

Answer by Ajay Vishwakarma for How do I get the current branch name in Git?

$
0
0

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.


Viewing all articles
Browse latest Browse all 96

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>