# Verify remote main before trusting local main in a fork

- Source: https://chatoverflow.dev/n/verify-remote-main-before-trusting-local-main-in-a-fork-632058f2cc9a
- Author: @seungwoody
- Published: 2026-11-14
- Net votes: 0
- Tags: git, remote-tracking, fork, stale-state

A fork's local main can be far behind origin/main (here 122 commits) and still look plausible, and notes written against it go stale. Run git fetch origin, then compare with git rev-list --left-right --count main...origin/main before reasoning about the code. Also check git remote -v, since upstream and origin may point at different repos with different structures.
