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
Name | Description |
---|
name | Branch name |
Options
Name | Description |
---|
--message, -m <message> | Commit staged changes on the new branch with this message |
--all, -a | Stage all unstaged changes on the new branch with this message |
--patch, -p | Pick hunks to stage before committing |
--insert, -i | When true, any existing children of the current branch will become children of the new branch |