Skip to main content
Glama

mcp-git

by ver0-project
MIT License
20

commit

Stage and apply changes to a Git repository with a specified commit message. Supports options like amend, fixup, squash, GPG signing, and path-specific commits to streamline version control workflows.

Instructions

Commit staged changes to the git repository.

Input Schema

NameRequiredDescriptionDefault
allNoAutomatically stage modified and deleted files (-a, --all)
allowEmptyNoAllow empty commits (--allow-empty)
allowEmptyMessageNoAllow empty commit messages (--allow-empty-message)
amendNoAmend the previous commit (--amend)
authorNoOverride author (--author)
cleanupNoCleanup mode (--cleanup)
dateNoOverride author date (--date)
dryRunNoShow what would be committed (--dry-run)
fileNoRead commit message from file (-F, --file)
fixupNoCreate fixup commit for specified commit (--fixup)
gpgSignNoGPG sign commit (-S, --gpg-sign)
includeNoInclude given paths in addition to index (-i, --include)
messageYesCommit message (-m, --message)
noGpgSignNoDo not GPG sign commit (--no-gpg-sign)
noStatusNoDo not include status in commit message template (--no-status)
noVerifyNoBypass pre-commit and commit-msg hooks (-n, --no-verify)
onlyNoCommit only specified paths (-o, --only)
pathspecNoLimit commit to specified paths
quietNoSuppress commit summary message (-q, --quiet)
reeditMessageNoLike reuseMessage but invoke editor (-c, --reedit-message)
repoPathYesAbsolute path to the git repository
reuseMessageNoReuse message from existing commit (-C, --reuse-message)
squashNoCreate squash commit for specified commit (--squash)
trailersNoAdd trailers to commit message (--trailer)
verboseNoShow unified diff of changes (-v, --verbose)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "all": { "description": "Automatically stage modified and deleted files (-a, --all)", "type": "boolean" }, "allowEmpty": { "description": "Allow empty commits (--allow-empty)", "type": "boolean" }, "allowEmptyMessage": { "description": "Allow empty commit messages (--allow-empty-message)", "type": "boolean" }, "amend": { "description": "Amend the previous commit (--amend)", "type": "boolean" }, "author": { "description": "Override author (--author)", "type": "string" }, "cleanup": { "description": "Cleanup mode (--cleanup)", "enum": [ "strip", "whitespace", "verbatim", "scissors", "default" ], "type": "string" }, "date": { "description": "Override author date (--date)", "type": "string" }, "dryRun": { "description": "Show what would be committed (--dry-run)", "type": "boolean" }, "file": { "description": "Read commit message from file (-F, --file)", "type": "string" }, "fixup": { "description": "Create fixup commit for specified commit (--fixup)", "type": "string" }, "gpgSign": { "description": "GPG sign commit (-S, --gpg-sign)", "type": [ "boolean", "string" ] }, "include": { "description": "Include given paths in addition to index (-i, --include)", "type": "boolean" }, "message": { "description": "Commit message (-m, --message)", "type": "string" }, "noGpgSign": { "description": "Do not GPG sign commit (--no-gpg-sign)", "type": "boolean" }, "noStatus": { "description": "Do not include status in commit message template (--no-status)", "type": "boolean" }, "noVerify": { "description": "Bypass pre-commit and commit-msg hooks (-n, --no-verify)", "type": "boolean" }, "only": { "description": "Commit only specified paths (-o, --only)", "type": "boolean" }, "pathspec": { "description": "Limit commit to specified paths", "items": { "type": "string" }, "type": "array" }, "quiet": { "description": "Suppress commit summary message (-q, --quiet)", "type": "boolean" }, "reeditMessage": { "description": "Like reuseMessage but invoke editor (-c, --reedit-message)", "type": "string" }, "repoPath": { "description": "Absolute path to the git repository", "type": "string" }, "reuseMessage": { "description": "Reuse message from existing commit (-C, --reuse-message)", "type": "string" }, "squash": { "description": "Create squash commit for specified commit (--squash)", "type": "string" }, "trailers": { "description": "Add trailers to commit message (--trailer)", "items": { "type": "string" }, "type": "array" }, "verbose": { "description": "Show unified diff of changes (-v, --verbose)", "type": "boolean" } }, "required": [ "repoPath", "message" ], "type": "object" }

You must to connect to the 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