Show the current branch name
Prints the name of the checked-out branch, or nothing in detached HEAD state.
git branch --show-currentReport an issue (opens in a new tab) wrong command, wrong danger level, typo… (on GitHub)
Adapted from tldr-pages (common/git-branch.md), licensed under CC BY 4.0.