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 ls
TIP
Use this command frequently to visualize your current stack structure
Examples
Basic Usage
bash
$ pq list
main
└── feature-backend
├── * feature-frontend (current)
└── feature-tests
In this example:
main
is the root branchfeature-backend
is a branch off ofmain
feature-frontend
andfeature-tests
are both branches off offeature-backend
- You are currently on the
feature-frontend
branch
Complex Stack Example
bash
$ pq list
main
├── docs-update
└── auth-feature
├── * login-ui (current)
│ └── login-tests
└── signup-ui
└── signup-tests
This shows a more complex branch structure with multiple levels and parallel branches.