Warp: Git Branch Status Chip Shows Ahead/Behind Commit Counts

Warp

Warp has added a new Git Branch Status context chip that displays ahead/behind commit counts alongside the current branch name directly in the terminal prompt. The chip renders as branch with up/down arrows and counts, suppressing zero counts for a clean display, and updates automatically via Warp's existing GitRepoStatusModel watcher without triggering any network requests. The feature closes a long-standing gap where Warp showed uncommitted file change counts but gave no indication of whether the local branch had unpushed commits or needed a pull.

Sources & Mentions

2 external resources covering this update


Git Branch Status Chip: Ahead/Behind Counts in the Prompt

Warp has added a Git Branch Status context chip that closes a gap developers have flagged since early 2025: the terminal showed local file change counts but gave no indication of whether the branch still needed a push or pull.

What the Chip Displays

The chip renders the branch name alongside directional commit counts: e.g. "main up-2" (two local commits not yet pushed), "main down-3" (three remote commits not yet pulled), or a diverged branch showing both. Zero counts are hidden, keeping the display uncluttered when the branch is in sync.

How It Works

The chip reuses the GitRepoStatusModel metadata that already drives Warp's file-change indicators. Ahead/behind counts refresh automatically whenever the local repo state changes, with no network fetches and no additional polling. Updates propagate to all open sessions watching the same repository.

Where It Appears

The chip is available in two configuration surfaces: the general prompt chip configurator and the third-party CLI agent toolbar configurator.

Why It Matters

Make a commit, get distracted, return to the terminal later, and have no idea whether that branch was pushed. Other prompt frameworks like Powerlevel10k and Starship have surfaced this for years. Warp now matches that natively, without requiring a custom PS1 or external prompt framework. The implementation was a community-contributed PR.


Mentioned onGitHubDeepWiki
Warp: Git Branch Ahead/Behind Counts in the Prompt | Yet Another Changelog