Dotty git done
dotty git done¶
Return to trunk, prune merged branches everywhere, fast-forward.
Synopsis¶
Finish a piece of work and reset to a clean, current trunk:
- Check out the trunk branch (main)
- Fetch all remotes with --prune
- Delete every local branch already merged into trunk (upstream/main when present, else origin/main), dropping it from any recorded stack
- Delete every origin branch already merged into trunk
- Fast-forward the local trunk branch to the remote
- Push the trunk branch to origin (keeps a fork's main in step)
Any remaining stack that has diverged from trunk is reported; check it out
and run dotty git sync to rebase and re-sign it.
Examples¶
Options¶
Options inherited from parent commands¶
SEE ALSO¶
- dotty git - Git helpers built on dotty's commit signing.