track
The track command adds an existing Git branch to your Panqake stack, establishing its relationship with other branches. This is useful when working with branches created before adopting Panqake or integrating branches created through other means.
Usage
bash
pq track [BRANCH_NAME] [--parent PARENT_BRANCH]Arguments
| Argument | Description |
|---|---|
BRANCH_NAME | Name of branch to track (optional) |
Options
| Option | Description |
|---|---|
--parent PARENT_BRANCH | Set the parent explicitly instead of prompting |
--json | Output machine-readable JSON and disable interactive prompts |
Examples
Tracking a Branch with Current Branch as Parent
bash
pq track feature-uiTracking a Branch with Interactive Prompts
bash
pq trackNon-interactive Tracking
bash
pq track feature-ui --parent main --jsonTIP
After tracking, use pq list to verify the branch structure. A branch can only have one parent in the stack.