poly-adk-branching
Installation
SKILL.md
Branching, Merging, and Conflicts
Load poly-adk-workflow first for where branching sits in the build loop. The one rule that shapes everything: you cannot work on main — branch diff, merge, sync, tag, and untag all refuse to run there.
Branch management
poly branch list # all branches (--archived for soft-deleted ones)
poly branch current # current branch + its parent
poly branch create <name> # create + switch; branches from main's latest state
poly branch switch <name> # requires a clean tree (--force discards local changes)
poly branch rename <new-name>
poly branch delete [<name>] # main cannot be deleted
poly branch restore <branch_id> # un-archive; IDs from poly branch list --archived
poly branch history # branches merged into the current branch
Semantics that matter: