Commands
but branch
Commands for managing branches
Usage
Subcommands
new
Creates a new branch in the workspace.
Arguments
[BRANCH_NAME]- Name of the new branch (optional, auto-generated if not provided)
Options
-a, --anchor <ANCHOR>- Anchor point - either a commit ID or branch name to create the new branch from
delete
Deletes a branch from the workspace.
Alias: -d
Arguments
<BRANCH_NAME>- Name of the branch to delete (required)
Options
-f, --force- Force deletion without confirmation
list
List the branches in the repository.
Options
-l, --local- Show only local branches
unapply
Unapply a branch from the workspace.
Arguments
<BRANCH_NAME>- Name of the branch to unapply (required)
Options
-f, --force- Force unapply without confirmation
Examples
Create a new branch with auto-generated name:
Create a new branch with a specific name:
Create a new branch from a specific commit:
Delete a branch with confirmation:
Force delete a branch without confirmation:
List all branches:
List only local branches:
Unapply a branch from the workspace:
Last updated on