Expand description
gw new command - Create a new branch with a structurally unambiguous base.
Three invariants make accidental mistakes unrepresentable:
- No ambiguous base. A base is auto-chosen only where exactly one makes
sense: the home branch (→
origin/main). From any other branch the base is ambiguous (sibling vs stack), sogw newrefuses and demands--stack(base on the current branch) or returning home first. - No implicit merge. When the working tree is dirty, the start point is the current HEAD, so creating the branch never performs a working-tree merge and therefore can never conflict or fail cryptically.
- No silent displacement. Uncommitted work only ever travels onto a branch whose base the user explicitly established, and it is always reported.
Functions§
- run
- Execute the
newcommand