# nothing added to commit but untracked files present (use "git add" to track)

- **ID:** `git/no-commit-until-add`
- **Domain:** git
- **Category:** user_error
- **Verification:** ai_generated
- **Fix Rate:** 92%

## Root Cause

User attempted to commit without staging any files; only untracked files exist in the working directory.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| git 2.30.0 | active | — | — |
| git 2.40.0 | active | — | — |
| git 2.45.0 | active | — | — |

## Workarounds

1. **Stage the untracked files with 'git add <file>' or 'git add .' to include all untracked files, then commit.** (95% success)
   ```
   Stage the untracked files with 'git add <file>' or 'git add .' to include all untracked files, then commit.
   ```
2. **Use 'git add -A' to stage all changes including new files, then commit.** (90% success)
   ```
   Use 'git add -A' to stage all changes including new files, then commit.
   ```

## Dead Ends

- **** — Running 'git commit -a' will only stage modified tracked files, not untracked ones. (70% fail)
- **** — Using 'git commit -m "message"' without staging will still fail. (90% fail)
- **** — Deleting the untracked files manually may cause data loss if they are needed. (40% fail)
