Get List of all local branches git command


In order to find out the list of all local branches of your project make use of the git branch command,

Example:
% git branch

  feature/JIRA-1
  feature/JIRA-B
* master
  main
  release
Git Branch command to list all local branches
Git List of all Local Branches

As in the above example, you do not need to pass any options, all the branches that are available locally will be displayed in alphabetical order with an asterisk (*) in front of the current branch that you are on.

✌️Press the q button to come back to the shell from the list branch results.


Top Hashtags:

Advertisements

Advertisements




Advertisements