Skip to content

branch-tracking-upstream

branch

main tracks origin/main, both at the same commit, worktree clean

Baseline "tracked branch" state — `main` has its upstream set to
`origin/main` and both refs point at the same commit. No divergence.

Useful for testing:
  - tooltips / status indicators that read tracking config
  - branch view icons distinguishing tracked vs untracked branches
  - "Your branch is up to date with 'origin/main'" rendering
  • main is checked out
  • main has 3 commits
  • origin/main exists at the same commit as main
  • main is configured to track origin/main
  • worktree is clean
upstreamtrackingsyncedremoteclean
main
import { spinUpScenario } from '@gfargo/git-scenarios'

const repo = await spinUpScenario('branch-tracking-upstream')
* 6e30e6b (HEAD -> main, origin/main) feat: two
* c9e8aea feat: one
* 7520170 chore: initial

Back to Scenario Browser