View local branches

Git, Repository, Branch · Apr 13, 2021

Prints a list of all local branches.

  • Use git branch to display a list of all local branches.
  • Use arrow keys to navigate, press Q to exit.
git branch

# Examples
git branch
# master
# patch-1
# patch-2

More like this

  • Git Branches

    Master git branch commands with this snippet collection of simplified git documentation and tips.

    Collection · 37 snippets

  • View branches sorted by date

    Prints a list of all local branches sorted by date.

    Git, Repository · Apr 13, 2021

  • View merged branches

    Prints a list of all merged local branches.

    Git, Repository · Apr 13, 2021

  • Delete merged branches

    Deletes all local merged branches.

    Git, Repository · Apr 13, 2021