gt branch create [name]

Create a new branch stacked on top of the current branch and commit staged changes. If no branch name is specified but a commit message is passed, generate a branch name from the commit message

Arguments

NameDescription
nameBranch name

Options

NameDescription
--message, -m <message>Commit staged changes on the new branch with this message
--all, -aStage all unstaged changes on the new branch with this message
--patch, -pPick hunks to stage before committing
--insert, -iWhen true, any existing children of the current branch will become children of the new branch