AGENT SKILL

merge-conflicts

Resolve merge conflicts by rebasing. Use when PR mergeable status is CONFLICTING.

License 许可
MIT
所属仓库
vyzn-tech/po-agent
最近更新
2026-03-11
Stars
★ 0
Forks
1

01 前言 Front Matter

name
merge-conflicts
description
Resolve merge conflicts by rebasing. Use when PR mergeable status is CONFLICTING.
allowed-tools
Bash

02 资源文件 14

03 SKILL.md 正文

Merge Conflict Resolution

Check Status

gh pr view <PR_NUMBER> --json mergeable --jq '.mergeable'
  • MERGEABLE → No conflicts
  • CONFLICTING → Must resolve conflicts FIRST
  • UNKNOWN → Wait 30 seconds and retry

Resolve

git fetch origin main   # or your base branch
git rebase origin/main

# For each conflicting file:
# 1. Find markers: <<<<<<<, =======, >>>>>>>
# 2. Edit to keep correct code
# 3. git add <file>
# 4. git rebase --continue

git push --force-with-lease

Critical

  • Always resolve conflicts BEFORE other changes
  • Use --force-with-lease (never --force)
  • After resolving, verify the build still works

04 同仓库更多 Skills