Workflows

Sync Before Review

Sync your branch with main before opening review so reviewers see current, focused diffs instead of stale base noise.

Why this step matters

When a branch drifts too far from main, review gets noisier:

  • already-resolved upstream changes reappear as local context
  • stale base conflicts confuse the review
  • the stack becomes harder to interpret

Recommended flow

git fetch origin
git rebase origin/main
git diff --stat origin/main...

If your team prefers not to rewrite branch history:

git fetch origin
git merge origin/main

What to confirm before review

  1. your branch includes the latest mainline state
  2. the diff still matches the intended scope
  3. the latest commits are clean enough for reviewers to follow