Skip to main content
Glama

Git Repo Browser MCP

git_revert

Revert a Git branch to a specific commit or state. Provide the repository path and commit hash, with an option to stage changes without creating a new commit.

Instructions

Revert the current branch to a commit or state.

Input Schema

NameRequiredDescriptionDefault
commitNoCommit hash or reference to revert
no_commitNoWhether to stage changes without committing
repo_pathYesThe path to the local Git repository

Input Schema (JSON Schema)

{ "properties": { "commit": { "description": "Commit hash or reference to revert", "type": "string" }, "no_commit": { "default": false, "description": "Whether to stage changes without committing", "type": "boolean" }, "repo_path": { "description": "The path to the local Git repository", "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