Command

Git Create Branch Command

The Git command to create branch is git branch <name>.

Quick Answer

Command
git branch <name>
GitCommand

Create Branch

Type this command
git branch <name>

Creates a new branch at the current commit.

Learn More

How to create branch in Git

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

Git Create Branch Command

Run git branch <name>.

Related Commands

Frequently asked questions

What is the Git command to create branch?

Run git branch <name>.

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