Documentation Index
Fetch the complete documentation index at: https://docs.vibehub.co.in/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Description
Switch to a different branch or create a new branch and switch to it. This command changes your working context to the specified branch.Arguments
Branch name to switch to or create.
Options
Create a new branch and switch to it.
Source branch to create from (used with
-b). Defaults to current branch.Examples
Switch to an Existing Branch
Create and Switch to a New Branch
Create Branch from Specific Source
production instead of the current branch.
The switch Alias
vibe switch works the same as vibe checkout, using Git’s newer command syntax:
Behavior
When you checkout a branch:- Your working context switches to that branch
- Future
vibe pushcommands will push to that branch - Future
vibe pullcommands will pull from that branch - The branch indicator in
vibe branchupdates
Error Messages
Branch Not Found
-b flag or check the branch name.
Already on Branch
Branch Already Exists (when creating)
Workflow Examples
Feature Branch Workflow
Hotfix Workflow
Related Commands
- vibe branch - List and manage branches
- vibe merge - Merge branches
- vibe push - Push to current branch
