{
  "id": "git/detached-head-rebase-abort",
  "signature": "fatal: No rebase in progress?",
  "signature_zh": "致命错误：没有正在进行的变基操作？",
  "regex": "^fatal: No rebase in progress\\?$",
  "domain": "git",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "Running 'git rebase --abort' when no rebase is in progress, often after a rebase has already completed or was never started.",
  "root_cause_type": "generic",
  "root_cause_zh": "在没有进行变基操作时运行 'git rebase --abort'，通常是在变基已完成或从未开始之后。",
  "versions": [
    {
      "version": "git 2.25",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "git 2.33",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "git 2.40",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The command is idempotent; if no rebase is active, it will keep failing with the same error.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The error is specifically about the absence of a rebase state file, not about working tree cleanliness.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify if a rebase is in progress by checking for .git/rebase-apply or .git/rebase-merge directories: ls -la .git/rebase-*",
      "success_rate": 0.9,
      "how": "Verify if a rebase is in progress by checking for .git/rebase-apply or .git/rebase-merge directories: ls -la .git/rebase-*",
      "condition": "",
      "sources": []
    },
    {
      "action": "If you intended to abort a merge or cherry-pick, use the appropriate command: git merge --abort or git cherry-pick --abort",
      "success_rate": 0.85,
      "how": "If you intended to abort a merge or cherry-pick, use the appropriate command: git merge --abort or git cherry-pick --abort",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify if a rebase is in progress by checking for .git/rebase-apply or .git/rebase-merge directories: ls -la .git/rebase-*",
    "If you intended to abort a merge or cherry-pick, use the appropriate command: git merge --abort or git cherry-pick --abort"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://git-scm.com/docs/git-rebase#Documentation/git-rebase.txt---abort",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.8,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2023-05-30",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}