Skip to content

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

ArgumentDescription
BRANCH_NAMEName of branch to track (optional)

Options

OptionDescription
--parent PARENT_BRANCHSet the parent explicitly instead of prompting
--jsonOutput machine-readable JSON and disable interactive prompts

Examples

Tracking a Branch with Current Branch as Parent

bash
pq track feature-ui

Tracking a Branch with Interactive Prompts

bash
pq track

Non-interactive Tracking

bash
pq track feature-ui --parent main --json

TIP

After tracking, use pq list to verify the branch structure. A branch can only have one parent in the stack.

Released under the MIT License.