Skip to main content
Glama

git_worktree

Apply multi-file changes in an isolated git worktree with optional verification, auto-commit, fast-forward merge, and automatic rollback on failure.

Instructions

Multi-file changes on isolated git branch: zero working-tree pollution, auto commit + ff-merge, verify_cmd. Rollback on failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
changesYesREQUIRED: list of file changes to apply transactionally
messageNoCommit message (default: tongtian: multi-file change (N files))
timeoutNoGit command timeout in ms (default: 30000, min 1000)
verify_cmdNoOptional shell command run in the worktree before commit; non-zero exit aborts and rolls back
workspace_dirYesREQUIRED: project root (abs). Must be a git repository.

Latest Blog Posts

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/wulun811/LiuHe'

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