Skip to main content

gh-pr-merge-in-worktrees

Recover from `gh pr merge --delete-branch` appearing to fail inside a git worktree. Use when: (1) `gh pr merge 2 --delete-branch` prints `failed to run git: fatal: '<branch>' is already used by worktree at '<path>'`, (2) you suspect the PR merged anyway despite the error, (3) you see a merged PR with its remote branch still present on origin, (4) working in any multi-worktree setup where `main` is checked out in a sibling worktree. Explains that `gh pr merge --delete-branch` runs three separable steps (API merge, local delete, remote delete) and the middle step failing leaves the merge state inconsistent with the branch-cleanup state.

الانتقال إلى التثبيت

معلومات المصدر

المستودع
cajias/claude-skills
آخر نشاط في المصدر
٢٠ يوليو ٢٠٢٦ في ٠٧:٢٩
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٠
التفرعات
٠

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.