create_branch
Create a new Git branch from a specified commit or current HEAD without switching to it. Use this tool to prepare branches for development work in a repository.
Instructions
Create a new git branch.
This tool creates a new branch pointer but DOES NOT switch to it.
To start working on the new branch, you must call switch_branch afterwards.
Args: repo_path: The absolute path to the repository. branch_name: The name of the new branch (e.g., "feature/new-login"). from_ref: The commit SHA or branch name to start the new branch from. If not provided, defaults to the current HEAD.
Returns: A confirmation message containing the new branch name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| branch_name | Yes | ||
| from_ref | No |