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

Answer by Shahmir Jadoon for How do I get the current branch name in Git?

$
0
0

You can get the current git branch name by using the following command:

git branch --show-current

It will display the current branch. If you want to copy the current branch name, you can use the following command:

git branch --show-current | pbcopy

Viewing all articles
Browse latest Browse all 96

Trending Articles



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