Y
Hacker News
new
|
ask
|
show
|
jobs
by
ryenus
1825 days ago
Nowadays there's the `--show-current` option:
git branch --show-current
See
https://git-scm.com/docs/git-branch