Pull latest origin/main into the current local branch and resolve merge conflicts (aka update-branch). Use when Copilot needs to sync a feature branch with origin, perform a merge-based update (not rebase), and apply conflict resolution best practices.
git status is clean or commit/stash changes before merging.git config rerere.enabled truegit config rerere.autoupdate trueorigin remote exists.git fetch origingit pull --ff-only origin $(git branch --show-current)origin/main.git -c merge.conflictstyle=zdiff3 merge origin/main for clearer conflict context.git add <files>git commit or git merge --continuegit status to list conflicted files.git diff or git diff --merge to see conflict hunks.git diff :1:path/to/file :2:path/to/file and git diff :1:path/to/file :3:path/to/file to compare base vs ours/theirs.merge.conflictstyle=zdiff3, focus on the differing core rather than matching context.ours/theirs only when one side clearly wins in full.git diff --checkDo not ask for input unless there is no safe, reversible alternative.
Ask only when:
Otherwise, proceed with the merge, explain the decision briefly in notes, and leave a clear, reviewable history.