list
The list command displays all branches in your stack with their hierarchical relationships, giving you a visual overview of your branch structure.
Aliases: ls
Usage
bash
pq list
pq lsTIP
Use this command frequently to visualize your current stack structure
Examples
Basic Usage
bash
$ pq list
main
└── feature-backend
├── * feature-frontend (current)
└── feature-testsIn this example:
mainis the root branchfeature-backendis a branch off ofmainfeature-frontendandfeature-testsare both branches off offeature-backend- You are currently on the
feature-frontendbranch
Complex Stack Example
bash
$ pq list
main
├── docs-update
└── auth-feature
├── * login-ui (current)
│ └── login-tests
└── signup-ui
└── signup-testsThis shows a more complex branch structure with multiple levels and parallel branches.