Skip to content

branch

Usage
branch <branch_name>

Switches to a local git branch, creating it if it does not already exist. Extra arguments are forwarded to git checkout.

branch_name Branch to switch to or create
0 Branch checked out or created
1 Not inside a git work tree
Terminal window
branch feature/new-ui

Dependencies: git