Thuta Learning
Git
IntermediateDevOps & Toolsbeginner

git branch

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)
git branch | Thuta Learning