Git Town
$ git-town Community Med RiskGo CLI automating trunk-based, GitHub Flow, and stacked-branch Git workflows via commands like hack, sync, append, propose, and ship. Offers --dry-run command previews and git town undo rollback, though it lacks native JSON output.
brew install git-town Orchestrates local git branch graphs and remote pushes directly; CLI --dry-run and undo have no MCP equivalent.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Provides --dry-run and non-interactive branch workflow flags, though lacks --json status output and some subcommands like switch or setup are interactive.
- Supports
--dry-runand--verboseacross workflow commands - No universal
--jsonoutput format
--dry-run, git-town undo, and runlog reduce branch-mutation risk, though ship and sync perform remote pushes and branch deletions.
- Built-in
--dry-runpreview andundorollback - Performs remote branch pushes and merges
Single static Go binary available across macOS, Linux, and Windows via Homebrew and GitHub Releases.
- Static Go binary requiring only
git
Saves multi-command rebase/sync sequences in stacked-branch repos, though simple repos work fine with raw git.
- Encapsulates multi-step rebase and parent-branch tracking
Actively maintained open-source Go project (git-town/git-town) under MIT license.
- High-cadence MIT-licensed repository
Well-structured documentation at git-town.com covering every command and configuration option.
- Comprehensive command reference at git-town.com/commands
Security, Auth & Guardrails
Delegates Git push/pull to local git; optional forge API integration reads tokens from Git Town config or GITHUB_TOKEN/GITLAB_TOKEN.
MIT open-source Go binary; completely free.
# Git Town (git-town) Agent Rules - Run `git-town <subcommand> --dry-run` before executing `sync`, `ship`, or `delete`. - Never run `git-town ship` without user approval, as it merges and deletes branches on the remote. - Use `git-town undo` if a multi-step branch operation needs to be reverted.
Agent-Ready Command Recipes
Safe Read-Only Queries
git-town sync --dry-run
Prints the exact underlying git commands that sync would run without modifying branches or remotes.
Controlled Writes & Previews
git-town hack feat/new-endpoint
Syncs main and checks out a fresh feature branch non-interactively.
Strengths for Agents
- +
--dry-runprints exact underlyinggitcommands before mutating branches or remotes. - +
git-town undoandrunlogoffer clean recovery if a multi-branch sync hits trouble.
Caveats & Pitfalls
- ! No
--jsonoutput for branch hierarchy inspection. - ! Setup wizards (
git-town config setup) andswitchopen interactive terminal prompts.