gx handoff generates a formatted summary of your branch: commits, file changes, and stats. Useful for PR descriptions, Slack updates, or standup notes.
Usage
Flags
Auto Base Detection
gx automatically determines the base branch to compare against:- If
--againstis specified, use that branch - If the current branch is in the stack, use the stack parent
- Otherwise, use the HEAD branch (main/master)
Output Formats
Plain (default)
Markdown (--markdown or --md)
Examples
Details
Details
- If the clipboard copy fails (e.g., no clipboard utility available), gx prints
WARN Could not copy to clipboard.but still shows the output - If there are no changes between the branches, gx prints
> No changes between <current> and <base>. - File stats are computed using
git diff --statwith the triple-dot syntax (merge base) - The markdown format is designed to paste cleanly into GitHub PR descriptions