Skip to main content
Glama

mcp-git

by ver0-project

reset

Reset a Git repository to a specified commit, branch, or tag using soft, mixed, or hard modes. Manage repository state by keeping changes staged, unstaging changes, or discarding changes entirely.

Instructions

Reset repository state (soft, mixed, hard).

Input Schema

NameRequiredDescriptionDefault
modeNoReset mode: soft (keep changes staged), mixed (unstage changes), hard (discard changes)mixed
pathspecNoLimit reset to specific paths
repoPathYesAbsolute path to the git repository
targetNoTarget commit, branch, or tag to reset to (defaults to HEAD)HEAD

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "mode": { "default": "mixed", "description": "Reset mode: soft (keep changes staged), mixed (unstage changes), hard (discard changes)", "enum": [ "soft", "mixed", "hard" ], "type": "string" }, "pathspec": { "description": "Limit reset to specific paths", "items": { "type": "string" }, "type": "array" }, "repoPath": { "description": "Absolute path to the git repository", "type": "string" }, "target": { "default": "HEAD", "description": "Target commit, branch, or tag to reset to (defaults to HEAD)", "type": "string" } }, "required": [ "repoPath" ], "type": "object" }
Install Server

Other Tools from mcp-git

Related Tools

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/ver0-project/mcps'

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