Aviator CLI Cheatsheet
Written
- Aviator is a tool for managing stacked branches and PRs. Their CLI can be used separately from the rest of the product. Here are some useful commands for it:
av stack sync
rebases branches within the current stack and pushesav stack sync --trunk
is like the above, but also brings the stack up to date with the trunk branchav stack sync --prune
deletes branches for merged PRsav stack sync --all --trunk --prune
brings everything in the repository up to date, deletes merged branches, etc.av stack submit
to create and sync PRs for every branch in the current stackav pr create
creates a PR for the current branchav stack branch
creates a new branch off of the current branchav stack branch-commit -b <BRANCHNAME>
createe a new branch and commits the currently staged files (see —help on this one for more options)av stack switch
is a stack-aware TUI for switching branches.av stack tree
shows the same diagram used byswitch
but only prints it.av stack reorder
to move commits between branches in a stack, or also merge and split branches.- Moving branches between stacks requires a few commands
git checkout <BRANCH TO MOVE>
git rebase <NEW_PARENT_BRANCH>
av stack sync --parent <NEW_PARENT_BRANCH>