Thuta Learning
Git
IntermediateDevOps & ToolsBeginner

git branch

GitLesson 11

git branch command is used to manage branches.

• git branch: List all local branches

• git branch <branch_name>: Create a new branch

bash
# List all branches (* indicates current branch)
git branch

# Create a new branch named "new-feature"
git branch new-feature
You should see
(A list of branches will appear in the terminal, and a new branch called 'new-feature' will be created)

Updated on

Progress is saved only in this browser on this device. It isn't synced to other devices.

Report a problem with this lessonOpens your email app with this lesson's address filled in — nothing is sent until you send it.

git branch | Thuta Learning