git_publish_paths
Publish only selected Git files safely by isolating them in a temporary worktree, verifying changes, and pushing without altering your working directory or index.
Instructions
Safely publish only selected files. Fetches the remote branch, refuses selected-path drift, copies only those files into an isolated temporary worktree rooted at the remote tip, optionally verifies there, commits, then pushes without changing the caller worktree/index/branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Git repository directory; defaults to the workspace. | |
| paths | Yes | Repository-relative files to publish. | |
| branch | No | Branch; defaults to the current branch. | |
| remote | No | Remote name; defaults to origin. | |
| message | Yes | Commit message for the isolated publish commit. | |
| verify_profile | No | Optional project verification profile to run inside the isolated worktree before commit/push. | |
| verify_timeout_ms | No | Verification timeout when verify_profile is supplied. |