Thuta Learning
IntermediateDevOps & Toolsbeginner

git branch

Relax. We'll talk through this in plain words — no textbook voice.

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)