GDP · desktop2026-11-22Source reviewed: 2026-11-22

Publish selected Git changes with GDP

Use selective Git publication through a supported, linked MCP client when only specific paths should go into a commit. Decide explicitly whether that commit should also go to a remote branch.

Review the change in Inspect

  1. Select the intended repository tab. Review the working-tree diff for every path you intend to include. A selected path contributes its current file changes, including any other edits to the same file.
  2. Apply a proposed patch locally if that is part of your workflow, then inspect the resulting diff. Applying a patch changes the working tree. Publishing is a separate action with its own scope and policy.

Check scope and admission

  1. In your linked MCP client, select the same device and workspace. If the publication tools are available for the connection, run the read-only probe_git_publication_admission for the exact paths and intended action.
  2. For a push, check the remote and target branch. Review the current HEAD and any mismatch or remote error in preflight. The probe checks readiness at that moment. Changes to the branch or policy can affect a later request.

Choose commit only or commit and push

GDP builds the selective commit using a temporary Git index. Unrelated staged and unstaged changes stay out of the commit. The selected paths are still part of the commit, so review the whole diff for each path.

  1. Use request_git_publication with the reviewed path list and explicitly choose commit for a local commit, or commit_push for a commit and an ordinary push to the reviewed remote branch. If the branch head or remote has changed, review the diff and rerun preflight before requesting publication again.

Verify the recorded result

  1. Keep the request ID. Use inspect_git_publication to read the recorded status and commit ID. For a push, check that the receipt says remote_confirmed is true before treating it as published.
  2. If the request fails or the connection drops, inspect the existing receipt and current branch state before retrying. Check whether a commit exists and whether the remote confirms it.