Skip to main content
Glama

Git Repo Browser MCP

git_reset

Reset a local Git repository to a specific commit or state using soft, mixed, or hard mode. Ideal for reverting changes or restoring previous versions in Git Repo Browser MCP.

Instructions

Reset repository to specified commit or state.

Input Schema

NameRequiredDescriptionDefault
modeNoReset mode (soft, mixed, hard)mixed
repo_pathYesThe path to the local Git repository
toNoCommit or reference to reset toHEAD

Input Schema (JSON Schema)

{ "properties": { "mode": { "default": "mixed", "description": "Reset mode (soft, mixed, hard)", "enum": [ "soft", "mixed", "hard" ], "type": "string" }, "repo_path": { "description": "The path to the local Git repository", "type": "string" }, "to": { "default": "HEAD", "description": "Commit or reference to reset to", "type": "string" } }, "required": [ "repo_path" ], "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