Skip to main content

git-squash-merge-tree-hash-diagnosis

Diagnose and clean up a local branch that appears "N commits ahead of main" after its PR was squash-merged on GitHub, but whose work is actually fully integrated. Use when: (1) `git log main..HEAD` shows multiple commits but the matching PR is closed/merged on GitHub; (2) `git pull --ff-only` on `main` refuses with "Not possible to fast-forward" because local `main` accumulated orphan commits that were absorbed by the squash; (3) `git rebase main` would replay all branch commits and conflict because the squash commit's patch is the SUM of the branch's commits, not equivalent to any individual one; (4) `git log --cherry-mark --left-right main...HEAD` shows every branch commit as `>` (unique to HEAD) even though the work is in main; (5) you need to decide between "rebase + new PR" vs "delete merged branch" and the commit graph is misleading. The canonical signal is tree-hash equality: `git rev-parse HEAD^{tree}` vs `git rev-parse origin/main^{tree}` — if equal, every file is byte-identical and the branch is ful

설치로 이동

소스 정보

저장소
cajias/claude-skills
최근 소스 활동
2026년 7월 20일 07:29
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

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

소스 파일 검토

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