Diagnose and bypass `gh pr merge --squash --delete-branch` failing with
"failed to run git: fatal: 'main' is already used by worktree at .…
“ई-कॉमर्स और बिक्री” क्षेत्र में एक skill। Claude Code, Codex, OpenCode और 32 अन्य एजेंट के लिए तैयार कमांड।
पूरा विवरण
Diagnose and bypass `gh pr merge --squash --delete-branch` failing with
"failed to run git: fatal: 'main' is already used by worktree at ..." when
another git worktree has main checked out. Use when: (1) you run gh pr merge
and see this exact error, (2) you have multiple worktrees in the repo (e.g.
`.claude/worktrees/*`), (3) the error appears even though the GitHub merge
itself looks fine. The merge SUCCEEDED on GitHub — only gh's local-side
effect (post-merge `git checkout main`) failed. Verify via
`gh pr view N --json state,mergedAt`; if state=MERGED, you're done. This
also applies to `gh pr checkout` and any other `gh` subcommand that tries
to touch the local main branch while another worktree has it claimed.
v1.2.0 (2026-05-26) adds the sequential-error variant: if you re-run from
the main-repo worktree after the first error, you can then hit "cannot
delete branch <feature-branch> used by worktree at <feature-worktree>" —
same one-checkout-per-branch invariant, this time applied to the feature
branch. Cleanup order: `git worktree remove` BEFORE `git branch -D`.
v1.3.0 (2026-05-27) adds the `--auto --delete-branch` enable-time
variant: when checks are still pending, `gh pr merge N --auto --squash
--delete-branch` fails locally (same "main is already used by worktree"
message) BEFORE the auto-merge intent is registered server-side —
`gh pr view N --json autoMergeRequest` returns null. Workaround: drop
`--delete-branch` (`gh pr merge N --auto --squash`), then `git worktree
remove` + `git branch -D` manually after the merge lands. The post-merge
variant in v1.0-1.2 succeeds the merge first then chokes on cleanup;
this v1.3 variant chokes BEFORE the server-side enable, so verifying
with `--json autoMergeRequest` (not just `state`) is required.
Skill
ई-कॉमर्स और बिक्री
35 एजेंट
5 स्टार
MIT
यह एंट्री GitSkills ओपन डेटासेट (CC-BY-4.0) से ली गई है। ANG ने इस skill को चलाया या ऑडिट नहीं किया; इंस्टॉल से पहले स्रोत देखें।
कमांड पब्लिशर के रजिस्ट्री डेटा से बनाए गए हैं; ANG skills ने उन्हें चलाया या ऑडिट नहीं किया है।
एजेंट सपोर्ट
कौन से एजेंट इस एंट्री को पढ़ सकते हैं, और कौन से नहीं।
समर्थित 35
Claude Codeतैयार कमांड। Claude Code, SKILL.md को सपोर्ट करता है।स्रोत
Codexतैयार कमांड। Codex, SKILL.md को सपोर्ट करता है।स्रोत
OpenCodeतैयार कमांड। OpenCode, SKILL.md को सपोर्ट करता है।स्रोत
Grokतैयार कमांड। Grok, SKILL.md को सपोर्ट करता है।स्रोत
OpenClawतैयार कमांड। OpenClaw, SKILL.md को सपोर्ट करता है।स्रोत
Antigravityतैयार कमांड। Antigravity, SKILL.md को सपोर्ट करता है।स्रोत
Kimi Codeतैयार कमांड। Kimi Code, SKILL.md को सपोर्ट करता है।स्रोत
Qwen Codeतैयार कमांड। Qwen Code, SKILL.md को सपोर्ट करता है।स्रोत
Gemini CLIतैयार कमांड। Gemini CLI, SKILL.md को सपोर्ट करता है।स्रोत
Piतैयार कमांड। Pi, SKILL.md को सपोर्ट करता है।स्रोत
Gooseतैयार कमांड। Goose, SKILL.md को सपोर्ट करता है।स्रोत
Ampतैयार कमांड। Amp, SKILL.md को सपोर्ट करता है।स्रोत
Factory Droidतैयार कमांड। Factory Droid, SKILL.md को सपोर्ट करता है।स्रोत
Mistral Vibeतैयार कमांड। Mistral Vibe, SKILL.md को सपोर्ट करता है।स्रोत
Crushतैयार कमांड। Crush, SKILL.md को सपोर्ट करता है।स्रोत
Hermes Agentतैयार कमांड। Hermes Agent, SKILL.md को सपोर्ट करता है।स्रोत
Codebuffतैयार कमांड। Codebuff, SKILL.md को सपोर्ट करता है।स्रोत
Rovo Devतैयार कमांड। Rovo Dev, SKILL.md को सपोर्ट करता है।स्रोत
Qoderतैयार कमांड। Qoder, SKILL.md को सपोर्ट करता है।स्रोत
TRAEतैयार कमांड। TRAE, SKILL.md को सपोर्ट करता है।स्रोत
MiniMax Codeतैयार कमांड। MiniMax Code, SKILL.md को सपोर्ट करता है।स्रोत
MiMo Codeतैयार कमांड। MiMo Code, SKILL.md को सपोर्ट करता है।स्रोत
Cursorतैयार कमांड। Cursor, SKILL.md को सपोर्ट करता है।स्रोत
GitHub Copilotतैयार कमांड। GitHub Copilot, SKILL.md को सपोर्ट करता है।स्रोत
Kiroतैयार कमांड। Kiro, SKILL.md को सपोर्ट करता है।स्रोत
Clineतैयार कमांड। Cline, SKILL.md को सपोर्ट करता है।स्रोत
Kilo Codeतैयार कमांड। Kilo Code, SKILL.md को सपोर्ट करता है।स्रोत
Junieतैयार कमांड। Junie, SKILL.md को सपोर्ट करता है।स्रोत
Augment Codeतैयार कमांड। Augment Code, SKILL.md को सपोर्ट करता है।स्रोत
Zedतैयार कमांड। Zed, SKILL.md को सपोर्ट करता है।स्रोत
CodeBuddyतैयार कमांड। CodeBuddy, SKILL.md को सपोर्ट करता है।स्रोत
BLACKBOX AIतैयार कमांड। BLACKBOX AI, SKILL.md को सपोर्ट करता है।स्रोत
Devinतैयार कमांड। Devin, SKILL.md को सपोर्ट करता है।स्रोत
OpenHandsतैयार कमांड। OpenHands, SKILL.md को सपोर्ट करता है।स्रोत
Replit Agentतैयार कमांड। Replit Agent, SKILL.md को सपोर्ट करता है।स्रोत
दर्ज नहीं 8
AiderAider के लिए SKILL.md सपोर्ट दर्ज नहीं है।स्रोत
PlandexPlandex के लिए SKILL.md सपोर्ट दर्ज नहीं है।स्रोत
CodeGPTCodeGPT के लिए SKILL.md सपोर्ट दर्ज नहीं है।स्रोत
SWE-agentSWE-agent के लिए SKILL.md सपोर्ट दर्ज नहीं है।स्रोत
mini-SWE-agentmini-SWE-agent के लिए SKILL.md सपोर्ट दर्ज नहीं है।स्रोत
JulesJules के लिए SKILL.md सपोर्ट दर्ज नहीं है।स्रोत
Open SWEOpen SWE के लिए SKILL.md सपोर्ट दर्ज नहीं है।स्रोत
GitLab DuoGitLab Duo के लिए SKILL.md सपोर्ट दर्ज नहीं है।स्रोत
सपोर्ट हर एजेंट के SKILL.md और MCP पर आधिकारिक दस्तावेज़ों से आता है; ANG ने इस एंट्री को हर एजेंट पर नहीं चलाया है।
आसान शब्दों में
तकनीकी पृष्ठभूमि ज़रूरी नहीं।
यह क्या है?
Skill निर्देशों का एक पैक है जिसे आप अपने एजेंट (जैसे Claude Code या Codex) में लोड करते हैं। यह फ़ोन पर ऐप इंस्टॉल करने जैसा है: एक बार इंस्टॉल करें और एजेंट वह काम करना जान जाता है।
यह किसलिए है?
“ई-कॉमर्स और बिक्री” के कामों में इस्तेमाल होता है। प्रकाशक के शब्दों में: Diagnose and bypass `gh pr merge --squash --delete-branch` failing with "failed to run git: fatal: 'main' is already used by worktree at ..." when another gi…
उदाहरण अनुरोध
“स्टोर में प्रोडक्ट के विवरण अपडेट करो।”
एजेंट
Claude Code, Codex, OpenCode और 32 अन्य एजेंट के लिए तैयार कमांड हैं।
क्या इस पर भरोसा करें?
5 GitHub स्टार · MIT। इंस्टॉल करने से पहले स्रोत देखें।
इस्तेमाल
पिछले 30 दिन, साइट पर और एजेंट में।
0शेल्फ़ पर
0बार देखा गया
0बार कमांड कॉपी हुआ
0बार साइट से डाउनलोड हुआ
0बार ऐप से इंस्टॉल हुआ
0बार एजेंट ने खुद इंस्टॉल किया
0सक्रिय उपयोगकर्ता
असली इस्तेमाल के स्कोर के लिए ANG ऐप से कम से कम 20 उपयोगकर्ता और 50 काम चाहिए; अभी 0 उपयोगकर्ता, 0 काम हैं। तब तक पावर स्कोर लिस्टिंग डेटा से अनुमानित है।