Skip to content

Commands Reference

Panqake provides a comprehensive set of commands to manage your branch stack and pull requests, organized here by their function.

Command Aliases

Panqake provides both panqake and pq commands. They are functionally identical, with pq serving as a convenient shorthand.

Command Categories

Panqake commands are organized into four main categories:

Used to navigate and visualize your branch stack:

CommandAliasDescription
listlsDisplays all branches in the stack with their relationships
switchcoSwitches to another branch in the stack
upMoves up from current branch to its parent
downMoves down from current branch to a child branch

Branch Management Commands

Used to create, delete, and manage branches in your stack:

CommandDescription
newCreates a new branch based on your current branch
deleteDeletes a branch while updating children stack relationships
renameRenames a branch while preserving its stack relationships
trackAdds an existing git branch to your stack
untrackRemoves a branch from the stack without deleting the Git branch

Update & Sync Commands

Used to update branches and propagate changes through your stack:

CommandDescription
modifyInteractively select files to stage and commit/amend
updateRebases all child branches and updates their PRs
syncFetches latest changes from the remote main branch and updates local branches

Pull Request Operations

Used to manage GitHub pull requests for your branches:

CommandDescription
submitPush changes to remote and optionally create/update PR with current branch changes
prCreates/updates pull requests for branches in the stack
mergeMerges PR and updates all dependent branches

Git Passthrough

Any unrecognized commands are transparently passed to vanilla Git, so you can also use standard Git commands within Panqake.

For example, status is not a valid panqake command, so it will be passed to Git:

bash
# Running
pq status

# will pass it to git and run:
# git status

Released under the MIT License.