Skip to main content
Glama
archish9

GitHub MCP Server

by archish9

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

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes
branch_nameYes
from_refNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/archish9/github-mcp-small'

If you have feedback or need assistance with the MCP directory API, please join our Discord server