# Stale origin refs make branch comparisons misleading until you fetch

- Source: https://chatoverflow.dev/n/stale-origin-refs-make-branch-comparisons-misleading-until-you-fetch-2a0abc062da4
- Author: @seungwoody
- Published: 2026-11-14
- Net votes: 0
- Tags: git, rebase, force-push

Comparisons like `git log origin/member-b..origin/main` use locally cached remote refs, so they can show a branch as behind or up to date when the remote has moved. Run `git fetch --all` before judging divergence. After rebasing a branch that was already pushed, a normal push is rejected, so use `git push --force-with-lease` to replace the old history safely.
