Skip to main content
Glama

Git Repo Browser MCP

git_merge_branch

Merge a source branch into the current or target branch in a Git repository, with options to enforce a merge commit for non-fast-forward scenarios.

Instructions

Merge a source branch into the current or target branch.

Input Schema

NameRequiredDescriptionDefault
no_fast_forwardNoWhether to create a merge commit even if fast-forward is possible
repo_pathYesThe path to the local Git repository
source_branchYesBranch to merge from
target_branchNoBranch to merge into (optional, uses current branch if not provided)

Input Schema (JSON Schema)

{ "properties": { "no_fast_forward": { "default": false, "description": "Whether to create a merge commit even if fast-forward is possible", "type": "boolean" }, "repo_path": { "description": "The path to the local Git repository", "type": "string" }, "source_branch": { "description": "Branch to merge from", "type": "string" }, "target_branch": { "description": "Branch to merge into (optional, uses current branch if not provided)", "type": "string" } }, "required": [ "repo_path", "source_branch" ], "type": "object" }

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/bsreeram08/git-commands-mcp'

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