Skip to main content

pull

Merge local `main` into the current branch and resolve merge conflicts

소스 정보

저장소
EveryInc/symphony-thumbtack
최근 소스 활동
2026년 5월 6일 00:43
감지된 SKILL.md 언어
영어
스타
4
포크
4

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
pull
description
Merge local `main` into the current branch and resolve merge conflicts
# Pull (offline-demo) There is no remote in this demo. "Pull" here means: bring local `main` commits into the current feature branch. ## Workflow 1. Verify a clean working tree. Commit or stash before merging. 2. Enable rerere so conflict resolutions are remembered: ```sh git config rerere.enabled true git config rerere.autoupdate true ``` 3. Confirm you're on the feature branch (`symphony/<identifier>`), not on `main`: ```sh git branch --show-current ``` 4. Merge `main` into the current branch: ```sh git -c merge.conflictstyle=zdiff3 merge main ``` 5. If conflicts: resolve, `git add <files>`, `git commit` (or `git merge --continue`). 6. Verify nothing was missed: `git diff --check`. Note: `git pull` and `git fetch origin` will both fail in this demo because there is no `origin`. Use `git merge main` directly. ## Conflict resolution - Inspect intent: `git status`, `git diff --merge`, and `git diff :1:path :2:path` (base vs ours), `git diff :1:path :3:path` (base vs theirs) for file-level views. - With `merge.conflictstyle=zdiff3`, conflict markers show: `<<<<<<<` ours, `|||||||` base, `=======` split, `>>>>>>>` theirs. Matching context near the edges is trimmed automatically. - Decide the **final intended behavior** first; only then craft the code. - Prefer minimal, intention-preserving edits. - Resolve one file at a time and rerun any local tests after each batch. - Use `ours`/`theirs` only when one side should clearly win entirely. - Generated files: resolve source first, then regenerate, then stage. - Import conflicts: keep both temporarily, then prune via lint/typecheck. ## When to ask the user Default: don't. Make a best-effort decision, document the rationale in the merge commit, and proceed. Ask only when: - Resolution depends on product intent that isn't inferable from code/tests. - A user-visible API contract is at stake. - The merge introduces irreversible side effects (data loss, schema drops). - The branch or remote isn't what you expected.
GitHub에서 보기