Skip to content

branch-ahead-of-upstream

branch

main is 3 commits ahead of origin/main, worktree clean

`main` has 3 unpushed commits — `origin/main` sits 3 commits behind.
Upstream tracking is fully configured, so `git status` reports the
ahead count.

Useful for testing:
  - push workflows / "publish your changes" prompts
  - ahead-count rendering in branch lists and headers
  - PR-creation flows that count unpushed commits
  • main is checked out
  • main has 6 commits
  • main is 3 commits ahead of origin/main
  • main tracks origin/main
  • worktree is clean
upstreamtrackingaheadremote
main
import { spinUpScenario } from '@gfargo/git-scenarios'

const repo = await spinUpScenario('branch-ahead-of-upstream')
* e27a9c8 (HEAD -> main) feat: ahead three
* afb7f71 feat: ahead two
* a2b6066 feat: ahead one
* 0d8eaf9 (origin/main) feat: baseline two
* f269069 feat: baseline one
* 7520170 chore: initial

Back to Scenario Browser