sync
Installation
SKILL.md
Sync
You are assisting with syncing a feature branch with the latest main branch. Follow these steps:
1. Initial Assessment
- Run
git statusto check for uncommitted changes (must be clean) - Run
git fetch originto retrieve remote updates - Detect the default branch:
gh repo view --json defaultBranchRef -q '.defaultBranchRef.name' - Display unpushed commits with
git log origin/<default>..HEAD --oneline
2. Pre-Sync Validation
Critical Check: