You merged `main` locally, but the PR on GitHub still says "This branch has conflicts that must be resolved."
IntermediateTroubleshootingMerge and Rebase Problems
Answer
Likely causes → You merged a stale local main (not origin/main), you did not push, main moved again, or the PR's base branch is not main.
Diagnose →
git fetch origin
git log --oneline HEAD..origin/main # still missing commits?
git status -sb # ahead/behind your upstream
Check the PR's base branch at the top of the PR page.
Fix → git merge origin/main (or rebase), resolve, push. For the web editor, use "Resolve conflicts" for simple text conflicts.
Prevent → Always merge origin/main after git fetch, not a local main that may be old.
More on Merge and Rebase Problems
Production failed to start, and the file contains `<<<<<<< HEAD` lines that were committed.Beginner`error: you need to resolve your current index first`Beginner`fatal: You have not concluded your merge (MERGE_HEAD exists).`BeginnerRebase stops: `error: could not apply 1a2b3c4... Add retry` and later `No changes - did you forget to use 'git add'?`Intermediate`fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase.`Intermediate`CONFLICT (modify/delete): config/old.yml deleted in HEAD and modified in feature.`Intermediate