Mastering Local Branch Workflows in Git
Inspecting Branch States
Determining which branch your working directory is attached to can be done instantly. The active branch corresponds to the current HEAD reference:
$ git branch --show-current
main
To list all locally available branches, execute:
$ git branch
feature/auth
* main
The asterisk (*) marks the currently checked-out bran ...
Posted on Fri, 31 Jul 2026 16:06:28 +0000 by frymaster