{
  "id": "git/no-commit-until-add",
  "signature": "nothing added to commit but untracked files present (use \"git add\" to track)",
  "signature_zh": "未添加任何内容到提交，但存在未跟踪的文件（使用 \"git add\" 进行跟踪）",
  "regex": "nothing added to commit but untracked files present",
  "domain": "git",
  "category": "user_error",
  "subcategory": null,
  "root_cause": "User attempted to commit without staging any files; only untracked files exist in the working directory.",
  "root_cause_type": "generic",
  "root_cause_zh": "用户尝试提交但未暂存任何文件；工作目录中仅存在未跟踪的文件。",
  "versions": [
    {
      "version": "git 2.30.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "git 2.40.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "git 2.45.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Running 'git commit -a' will only stage modified tracked files, not untracked ones.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Using 'git commit -m \"message\"' without staging will still fail.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Deleting the untracked files manually may cause data loss if they are needed.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Stage the untracked files with 'git add <file>' or 'git add .' to include all untracked files, then commit.",
      "success_rate": 0.95,
      "how": "Stage the untracked files with 'git add <file>' or 'git add .' to include all untracked files, then commit.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use 'git add -A' to stage all changes including new files, then commit.",
      "success_rate": 0.9,
      "how": "Use 'git add -A' to stage all changes including new files, then commit.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Stage the untracked files with 'git add <file>' or 'git add .' to include all untracked files, then commit.",
    "Use 'git add -A' to stage all changes including new files, then commit."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://git-scm.com/docs/git-commit",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2023-01-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}