Usage
Description
Manage branches in your VibeHub project. List existing branches, create new ones, rename, or delete branches.Arguments
Branch name to create. If omitted, lists all branches.
Options
List all branches (local + remote).
Show branches with last commit info.
Show tracking info and last fetch time.
Delete a branch (safe - checks if merged first).
Force delete a branch without merge check.
Rename a branch. Usage:
-m <old-name> <new-name>Set upstream tracking branch for the current branch.
Examples
List All Branches
* indicates the current branch.
List Branches with Details
Create a New Branch
Delete a Branch (Safe)
Force Delete a Branch
Rename a Branch
Set Upstream Tracking
Branch Indicators
| Indicator | Meaning |
|---|---|
* | Current branch |
(default) | Default branch |
[protected] | Protected branch |
Restrictions
You cannot delete:- The default branch
- Protected branches
- The currently checked out branch
Error Messages
Branch Already Exists
Cannot Delete Current Branch
vibe checkout.
Branch Not Fully Merged
-D to force delete.
Related Commands
- vibe checkout - Switch branches
- vibe merge - Merge branches
- vibe fetch - Fetch remote branches
