Resolve unmerged paths from a pending merge, rebase, cherry-pick, or stash pop, then continue the operation and commit. Use when invoked as `$git-resolve-conflicts` or when the user asks to resolve conflicts and commit.
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Resolve every unmerged path in the current worktree, continue whatever git operation is pending, and commit the result.
Inspect state:
git status
git ls-files -uIdentify the pending operation:
MERGE_HEAD / rebase-merge / rebase-apply / CHERRY_PICK_HEAD / REVERT_HEAD present -> merge/rebase/cherry-pick/revert.List the conflicted files: git diff --name-only --diff-filter=U.
For each conflicted file, inspect the three stages:
git show :1:<path> # base
git show :2:<path> # ours (HEAD / current branch)
git show :3:<path> # theirs (incoming / stashed)And the working-tree conflict markers.
Resolve per file using these rules:
.codex/*.config.toml trust hashes, lockfiles): keep ours (git checkout --ours <path>); the clean filter re-normalizes on git add.--skip the commit.git checkout --theirs <path>).When a file has conflict markers, remove the markers and keep the chosen side's content. For 3-way markers (<<<<<<< / ||||||| / ======= / >>>>>>>), select the intended side and delete the marker lines.
Stage every resolved file:
git add <path> ...Verify no conflict markers remain:
git diff --checkIf any remain, fix before continuing.
Continue the pending operation:
git commit (use the prepared MERGE_MSG).git rebase --continue (or --skip if the commit became empty) / git cherry-pick --continue.git revert --continue.If the working tree now has changes relative to HEAD, commit them using the project's commit convention (see git-commit skill). If the tree is clean, report that there was nothing to commit.
Report: which files conflicted, how each was resolved, and the resulting commit (or "nothing to commit").
git stash (push/pop/apply/drop) in a shared workspace; resolve conflicts in place and leave the stash list untouched if dropping is blocked.phatblat/dotfiles
4d65cab
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.