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

Answer by Max for How to get the current branch name in Git?

$
0
0

As of version 2.22 of git you could just use:

git branch --show-current

Viewing all articles
Browse latest Browse all 96

Trending Articles