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.

Arguments:
branch_name Branch to switch to or create

Returns:

0 Branch checked out or created
1 Not inside a git work tree
Examples
branch feature/new-ui