gt upstack

Commands that operate on a branch and its descendants

Subcommands

NameDescription
onto, oRebase the current branch onto the latest commit of the target branch and restack all of its descendants. If no branch is passed in, opens an interactive selector
restack, r, fix, fEnsure each branch in the current stack is based on its parent, rebasing if necessary
submit, sIdempotently force push all branches in the current stack to GitHub, creating or updating distinct pull requests for each
test, tRun the provided command on each branch in the current stack and aggregate the results