Quick Actions
git branch
Description
List, create, or delete branches.
Command
git branch
Examples
List local branches
git branch
List all branches
git branch -a
Create new branch
git branch feature-branch
Delete branch
git branch -d feature-branch
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
-a |
string | No | List all branches (local and remote) |
-r |
string | No | List remote branches only |
-d |
string | No | Delete a branch |
-D |
string | No | Force delete a branch |
Command Info
Category:
Branching
Type:
Git
Views:
7
Status:
Active
Tags
branch
management
list