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 syncrebases branches within the current stack and pushesav stack sync --trunkis like the above, but also brings the stack up to date with the trunk branchav stack sync --prunedeletes branches for merged PRsav stack sync --all --trunk --prunebrings everything in the repository up to date, deletes merged branches, etc.av stack submitto create and sync PRs for every branch in the current stackav pr createcreates a PR for the current branchav stack branchcreates 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 switchis a stack-aware TUI for switching branches.av stack treeshows the same diagram used byswitchbut only prints it.av stack reorderto 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>