switch_branch
Change the active branch in a Git repository to work on different code versions. This tool updates the working directory to match the state of the specified branch using git checkout.
Instructions
Switch the repository to a different branch.
This command updates the working directory to match the state of the specified branch.
It performs a git checkout.
Args: repo_path: The absolute path to the repository. branch_name: The name of the branch to switch to. The branch must already exist.
Returns: A confirmation message indicating the successful switch and current branch name.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| branch_name | Yes |