Chapter 13 · Prompt Echo

Git to Know Git

Copy this prompt and paste it into Codex.

Book
Draft 3.0
Prompt
1.0
Destination
Codex
Download plain text
The pull request for this mission has been merged. Help me synchronize the local repository safely without discarding work.

Begin read-only: inspect the current branch, working tree, tracking relationships, merged pull request or remote evidence, and whether any local commit or untracked file exists only on this computer. Confirm the default branch and whether the feature branch was actually merged.

Propose the exact sequence to return to the default branch, update it without an unnecessary merge commit, verify the merged commit, and decide whether the local and remote feature branches may be retired. Wait for approval before switching, pulling, or deleting any branch. Never delete a branch that contains unmerged or unpushed work.

After approved synchronization, report the final branch, commit, cleanliness, and relationship to the remote.