Command

Git List Branches Command

The Git command to list branches is git branch.

Quick Answer

Command
git branch
GitCommand

List Branches

Type this command
git branch

Lists local branches; the current one is marked with *.

Learn More

How to list branches in Git

  1. Open the terminal or command interface for Git.
  2. Type git branch, replace any placeholders, and run it.

Git List Branches Command

Run git branch.

Related Commands

Frequently asked questions

What is the Git command to list branches?

Run git branch.

Where do I type this Git command?

Type it in the terminal or command-line interface used by Git.

Does this Git command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify