create-branch
Generate a new git branch from a specified repository path and branch name, with options to set a starting point, automatically switch, or force creation if it already exists.
Instructions
Create a new git branch, optionally from a specific starting point.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
branchName | Yes | Name of the new branch to create | |
force | No | Force create branch, resetting it if it already exists (-B flag) | |
repoPath | Yes | Absolute path to the git repository | |
startPoint | No | Starting point for new branch (commit, branch, or tag). Defaults to current HEAD | |
switchToBranch | No | Switch to the new branch after creation (default: true) |