Switch to a different branch or create a new branch and switch to it. This command changes your working context to the specified branch.
vibe switch is available as an alias with the same functionality, using Git’s newer syntax.
Arguments
string
required
Branch name to switch to or create.
Options
boolean
Create a new branch and switch to it.
string
Source branch to create from (used with -b). Defaults to current branch.
Examples
Switch to an Existing Branch
vibe checkout develop
Output:
Switched to branch 'develop' at commit abc1234
Create and Switch to a New Branch
vibe checkout -b feature/user-auth
Output:
Switched to a new branch 'feature/user-auth' created from 'main'
Create Branch from Specific Source
vibe checkout -b hotfix/urgent --source production
Creates a new branch from production instead of the current branch.
The switch Alias
vibe switch works the same as vibe checkout, using Git’s newer command syntax:
# Switch to existing branchvibe switch develop# Create and switch (use -c instead of -b)vibe switch -c feature/new-feature# Create from specific sourcevibe switch -c hotfix --source production
Behavior
When you checkout a branch:
Your working context switches to that branch
Future vibe push commands will push to that branch
Future vibe pull commands will pull from that branch
The branch indicator in vibe branch updates
Error Messages
Branch Not Found
Branch 'feature' not foundUse 'vibe checkout -b feature' to create it
Solution: Create the branch with -b flag or check the branch name.
Already on Branch
Already on 'main'
This is informational - you’re already on the requested branch.
Branch Already Exists (when creating)
A branch named 'feature' already existsUse 'vibe checkout feature' to switch to it
Solution: Switch to the existing branch or choose a different name.
Workflow Examples
Feature Branch Workflow
# Start on mainvibe checkout main# Create feature branchvibe checkout -b feature/login# Work on feature...vibe add .vibe commit -m "Add login form"vibe push# Switch back to mainvibe checkout main# Merge featurevibe merge feature/login
Hotfix Workflow
# Create hotfix from productionvibe checkout -b hotfix/security --source production# Fix the issuevibe add .vibe commit -m "Fix security vulnerability"vibe push# Merge to production and mainvibe checkout productionvibe merge hotfix/securityvibe checkout mainvibe merge hotfix/security
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"VibeHub Docs","colors":{"primary":"#6366F1","light":"#818CF8","dark":"#4F46E5"},"logo":{"light":"https://mintcdn.com/vibehub-baa074e3/IDTRQeqGYC2h3y-1/logo/vibehub-logo.png?fit=max\u0026auto=format\u0026n=IDTRQeqGYC2h3y-1\u0026q=85\u0026s=449b6d142e6c0bd5df8d4eb735204ba9","dark":"https://mintcdn.com/vibehub-baa074e3/IDTRQeqGYC2h3y-1/logo/vibehub-logo.png?fit=max\u0026auto=format\u0026n=IDTRQeqGYC2h3y-1\u0026q=85\u0026s=449b6d142e6c0bd5df8d4eb735204ba9","href":"https://vibehub.co.in"},"favicon":"https://mintcdn.com/vibehub-baa074e3/IDTRQeqGYC2h3y-1/logo/vibehub-logo.png?fit=max\u0026auto=format\u0026n=IDTRQeqGYC2h3y-1\u0026q=85\u0026s=449b6d142e6c0bd5df8d4eb735204ba9","footer":{"socials":{"github":"https://github.com/vibehub","twitter":"https://twitter.com/vibehub"}},"search":{"prompt":"Search VibeHub docs..."},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vibehub-baa074e3","hasAudioNarration":false,"actualSubdomain":"vibehub-baa074e3","customDomains":["docs.vibehub.co.in"],"gitSource":{"type":"github","owner":"anandakumar-d","repo":"vibehub","deployBranch":"supabase-migration","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae9460accbc2a091600fe40:success","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Guides","count":19},{"language":"default","tag":"CLI Reference","count":17},{"language":"default","tag":"Core Commands","count":6},{"language":"default","tag":"Getting Started","count":5},{"language":"default","tag":"Branch Commands","count":5},{"language":"default","tag":"Sync Commands","count":4},{"language":"default","tag":"Deployment","count":4},{"language":"default","tag":"Projects","count":4},{"language":"default","tag":"Version Control","count":4},{"language":"default","tag":"Collaboration","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"cli/commands/checkout","slug":"/cli/commands/checkout","pageMetadata":{"title":"vibe checkout","description":"Switch branches or create a new branch","icon":"arrow-right-arrow-left","href":"/cli/commands/checkout","hidden":false},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Switch branches or create a new branch\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`branc`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`h`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [options]`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`description`,children:`Description`}),`\n`,_jsx(_components.p,{children:`Switch to a different branch or create a new branch and switch to it. This command changes your working context to the specified branch.`}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`vibe switch`}),` is available as an alias with the same functionality, using Git’s newer syntax.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`arguments`,children:`Arguments`}),`\n`,_jsx(ParamField,{query:`branch`,type:`string`,required:true,id:`param-branch`,children:_jsx(_components.p,{children:`Branch name to switch to or create.`})}),`\n`,_jsx(Heading,{level:`2`,id:`options`,children:`Options`}),`\n`,_jsx(ParamField,{query:`-b, --create`,type:`boolean`,id:`param-b-create`,children:_jsx(_components.p,{children:`Create a new branch and switch to it.`})}),`\n`,_jsx(ParamField,{query:`--source`,type:`string`,id:`param-source`,children:_jsxs(_components.p,{children:[`Source branch to create from (used with `,_jsx(_components.code,{children:`-b`}),`). Defaults to current branch.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`examples`,children:`Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`switch-to-an-existing-branch`,children:`Switch to an Existing Branch`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` develop`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Output:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Switched to branch 'develop'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` at commit abc1234`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`create-and-switch-to-a-new-branch`,children:`Create and Switch to a New Branch`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -b`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` feature/user-auth`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Output:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Switched to a new branch 'feature/user-auth'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` created from 'main'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`create-branch-from-specific-source`,children:`Create Branch from Specific Source`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -b`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hotfix/urgent`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --source`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` production`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Creates a new branch from `,_jsx(_components.code,{children:`production`}),` instead of the current branch.`]}),`\n`,_jsxs(Heading,{level:`2`,id:`the-switch-alias`,children:[`The `,_jsx(_components.code,{children:`switch`}),` Alias`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`vibe switch`}),` works the same as `,_jsx(_components.code,{children:`vibe checkout`}),`, using Git’s newer command syntax:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Switch to existing branch`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` switch`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` develop`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create and switch (use -c instead of -b)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` switch`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` feature/new-feature`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create from specific source`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` switch`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hotfix`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --source`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` production`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`behavior`,children:`Behavior`}),`\n`,_jsx(_components.p,{children:`When you checkout a branch:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Your working context switches to that branch`}),`\n`,_jsxs(_components.li,{children:[`Future `,_jsx(_components.code,{children:`vibe push`}),` commands will push to that branch`]}),`\n`,_jsxs(_components.li,{children:[`Future `,_jsx(_components.code,{children:`vibe pull`}),` commands will pull from that branch`]}),`\n`,_jsxs(_components.li,{children:[`The branch indicator in `,_jsx(_components.code,{children:`vibe branch`}),` updates`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`error-messages`,children:`Error Messages`}),`\n`,_jsx(Heading,{level:`3`,id:`branch-not-found`,children:`Branch Not Found`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Branch 'feature' not found`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Use 'vibe checkout -b feature' to create it`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution:`}),` Create the branch with `,_jsx(_components.code,{children:`-b`}),` flag or check the branch name.`]}),`\n`,_jsx(Heading,{level:`3`,id:`already-on-branch`,children:`Already on Branch`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Already on 'main'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`This is informational - you’re already on the requested branch.`}),`\n`,_jsx(Heading,{level:`3`,id:`branch-already-exists-when-creating`,children:`Branch Already Exists (when creating)`}),`\n`,_jsx(CodeBlock,{numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`A branch named 'feature' already exists`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Use 'vibe checkout feature' to switch to it`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Solution:`}),` Switch to the existing branch or choose a different name.`]}),`\n`,_jsx(Heading,{level:`2`,id:`workflow-examples`,children:`Workflow Examples`}),`\n`,_jsx(Heading,{level:`3`,id:`feature-branch-workflow`,children:`Feature Branch Workflow`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`16`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Start on main`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create feature branch`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -b`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` feature/login`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Work on feature...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` commit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Add login form\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` push`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Switch back to main`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Merge feature`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` merge`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` feature/login`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`hotfix-workflow`,children:`Hotfix Workflow`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`14`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create hotfix from production`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -b`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hotfix/security`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --source`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` production`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Fix the issue`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` add`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` commit`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Fix security vulnerability\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` push`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Merge to production and main`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` production`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` merge`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hotfix/security`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` checkout`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` main`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`vibe`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` merge`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` hotfix/security`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`related-commands`,children:`Related Commands`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/cli/commands/branch`,children:`vibe branch`}),` - List and manage branches`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/cli/commands/merge`,children:`vibe merge`}),` - Merge branches`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/cli/commands/push`,children:`vibe push`}),` - Push to current branch`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"vibe checkout","description":"Switch branches or create a new branch","icon":"arrow-right-arrow-left","href":"/cli/commands/checkout","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Description","slug":"description","depth":2,"children":[]},{"title":"Arguments","slug":"arguments","depth":2,"children":[]},{"title":"Options","slug":"options","depth":2,"children":[]},{"title":"Examples","slug":"examples","depth":2,"children":[{"title":"Switch to an Existing Branch","slug":"switch-to-an-existing-branch","depth":3,"children":[]},{"title":"Create and Switch to a New Branch","slug":"create-and-switch-to-a-new-branch","depth":3,"children":[]},{"title":"Create Branch from Specific Source","slug":"create-branch-from-specific-source","depth":3,"children":[]}]},{"title":"The switch Alias","slug":"the-switch-alias","depth":2,"children":[]},{"title":"Behavior","slug":"behavior","depth":2,"children":[]},{"title":"Error Messages","slug":"error-messages","depth":2,"children":[{"title":"Branch Not Found","slug":"branch-not-found","depth":3,"children":[]},{"title":"Already on Branch","slug":"already-on-branch","depth":3,"children":[]},{"title":"Branch Already Exists (when creating)","slug":"branch-already-exists-when-creating","depth":3,"children":[]}]},{"title":"Workflow Examples","slug":"workflow-examples","depth":2,"children":[{"title":"Feature Branch Workflow","slug":"feature-branch-workflow","depth":3,"children":[]},{"title":"Hotfix Workflow","slug":"hotfix-workflow","depth":3,"children":[]}]},{"title":"Related Commands","slug":"related-commands","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"vibehub-baa074e3","siteName":"VibeHub Docs","title":"vibe checkout - VibeHub Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-25T11:39:53.905Z","originalFileLocation":"cli/commands/checkout.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Switch branches or create a new branch\">\u003cmeta data-mint-head name=\"application-name\" content=\"VibeHub Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"vibe checkout - VibeHub Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Switch branches or create a new branch\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"VibeHub Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.vibehub.co.in/cli/commands/checkout\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vibehub-baa074e3.mintlify.site/_mintlify/api/og/v2?division=Branch+Commands\u0026amp;title=vibe+checkout\u0026amp;description=Switch+branches+or+create+a+new+branch\u0026amp;theme=d0df0f8da9e0bafcca09ddcb\u0026amp;signature=5e73ffcf93ccd959f3f7e9f962042d29ac6fc209b64cc8d1131ffeea383a64cb\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"vibe checkout - VibeHub Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Switch branches or create a new branch\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vibehub-baa074e3.mintlify.site/_mintlify/api/og/v2?division=Branch+Commands\u0026amp;title=vibe+checkout\u0026amp;description=Switch+branches+or+create+a+new+branch\u0026amp;theme=d0df0f8da9e0bafcca09ddcb\u0026amp;signature=5e73ffcf93ccd959f3f7e9f962042d29ac6fc209b64cc8d1131ffeea383a64cb\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/vibehub-baa074e3/80s9bsa26EFd0ToS/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"VibeHub Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366F1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.vibehub.co.in/cli/commands/checkout\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/commands/checkout.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.vibehub.co.in/#organization\",\"name\":\"VibeHub Docs\",\"url\":\"https://docs.vibehub.co.in\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vibehub-baa074e3/IDTRQeqGYC2h3y-1/logo/vibehub-logo.png?fit=max\u0026auto=format\u0026n=IDTRQeqGYC2h3y-1\u0026q=85\u0026s=449b6d142e6c0bd5df8d4eb735204ba9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.vibehub.co.in#website\",\"name\":\"VibeHub Docs\",\"url\":\"https://docs.vibehub.co.in\",\"publisher\":{\"@id\":\"https://docs.vibehub.co.in/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.vibehub.co.in/cli/commands/checkout#webpage\",\"url\":\"https://docs.vibehub.co.in/cli/commands/checkout\",\"name\":\"vibe checkout\",\"description\":\"Switch branches or create a new branch\",\"dateModified\":\"2026-01-25T11:39:53.905Z\",\"isPartOf\":{\"@id\":\"https://docs.vibehub.co.in#website\"},\"breadcrumb\":{\"@id\":\"https://docs.vibehub.co.in/cli/commands/checkout#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.vibehub.co.in/cli/commands/checkout#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Branch Commands\",\"item\":\"https://docs.vibehub.co.in/cli/commands/branch\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"vibe checkout\",\"item\":\"https://docs.vibehub.co.in/cli/commands/checkout\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.vibehub.co.in/cli/commands/checkout#article\",\"headline\":\"vibe checkout\",\"name\":\"vibe checkout\",\"description\":\"Switch branches or create a new branch\",\"url\":\"https://docs.vibehub.co.in/cli/commands/checkout\",\"mainEntityOfPage\":{\"@id\":\"https://docs.vibehub.co.in/cli/commands/checkout#webpage\"},\"dateModified\":\"2026-01-25T11:39:53.905Z\",\"publisher\":{\"@id\":\"https://docs.vibehub.co.in/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.vibehub.co.in#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"VibeHub Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"VibeHub Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/cli/commands/checkout.md","siteName":"VibeHub Docs","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/introduction"}]},{"tab":"CLI Reference","groups":[{"group":"Getting Started","icon":"play","pages":[{"title":"CLI Installation","icon":"download","href":"/cli/installation"},{"title":"Authentication","icon":"key","href":"/cli/authentication"}]},{"group":"Core Commands","icon":"terminal","pages":[{"title":"vibe login","icon":"right-to-bracket","href":"/cli/commands/login"},{"title":"vibe init","icon":"folder-plus","href":"/cli/commands/init"},{"title":"vibe add","icon":"plus","href":"/cli/commands/add"},{"title":"vibe commit","icon":"code-commit","href":"/cli/commands/commit"},{"title":"vibe status","icon":"circle-info","href":"/cli/commands/status"},{"title":"vibe profiles","icon":"users","href":"/cli/commands/profiles"}]},{"group":"Sync Commands","icon":"cloud","pages":[{"title":"vibe push","icon":"cloud-arrow-up","href":"/cli/commands/push"},{"title":"vibe pull","icon":"cloud-arrow-down","href":"/cli/commands/pull"},{"title":"vibe fetch","icon":"download","href":"/cli/commands/fetch"},{"title":"vibe clone","icon":"copy","href":"/cli/commands/clone"}]},{"group":"Branch Commands","icon":"code-branch","pages":[{"title":"vibe branch","description":"List, create, or delete branches","icon":"code-branch","href":"/cli/commands/branch"},{"title":"vibe checkout","icon":"arrow-right-arrow-left","href":"/cli/commands/checkout"},{"title":"vibe merge","description":"Merge a branch into the current branch","icon":"code-merge","href":"/cli/commands/merge"},{"title":"vibe diff","icon":"code-compare","href":"/cli/commands/diff"},{"title":"vibe log","icon":"clock-rotate-left","href":"/cli/commands/log"}]}]}]},"basePath":"","title":"vibe checkout - VibeHub Docs","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":[],"chunks":[]}