Wrap Branch banner
nygenome nygenome

Wrap Branch

Git community

Description

# /wrap-branch — Finish a development branch Drive the cleanup workflow at the end of feature work. Runs a pre-check, then asks the user how to finalize the branch — merge locally, open a PR, keep the branch for later, or discard. Handles worktree cleanup based on the choice. ## Why this command exists The end-of-branch workflow has four reasonable paths and each has its own steps (merge command, push + PR, cleanup vs no-cleanup of worktrees). Doing it manually means recalling the right git i

Installation

Installs to ~/.claude/commands/nygenome-lancet2-wrap-branch.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/nygenome/Lancet2/HEAD/.claude/commands/wrap-branch.md -o ~/.claude/commands/nygenome-lancet2-wrap-branch.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository