Pull latest origin/main into the current local branch and resolve merge conflicts (aka update-branch). Use when Codex needs to sync a feature branch with origin, perform a merge-based update (not rebase), and guide conflict resolution best practices.
This pulls branch updates made remotely (for example, a GitHub auto-commit)
before merging origin/main.
Merge in order:
Prefer git -c merge.conflictstyle=zdiff3 merge origin/main for clearer
conflict context.
If conflicts appear, resolve them (see conflict guidance below), then:
git add <files>
(or if the merge is paused)
Skills relacionados
git commit
git merge --continue
Verify with project checks (follow repo policy in AGENTS.md).
Summarize the merge:
Call out the most challenging conflicts/files and how they were resolved.
Note any assumptions or follow-ups.
Conflict Resolution Guidance (Best Practices)
Inspect context before editing:
Use git status to list conflicted files.
Use git diff or git diff --merge to see conflict hunks.
Use 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
for a file-level view of intent.
With merge.conflictstyle=zdiff3, conflict markers include: