dev@local: ~/project — git
dev@local~/project$git status
fatal: corrupt index
Diagnostics Translation
The internal staging area database file has become corrupted.
waiting for resolution...
HighVersion Control System

Reviewed for reference consistency: April 11, 2026

Code is Safe

SECURE

Git has paused the operation to protect your code. No data has been lost or corrupted.

What To Know

This state means the staging-area database is unreadable or internally inconsistent, even though commit objects may still be intact elsewhere in the repository.

Where Did It Fail?

Working Tree
Your local files
add
Staging Index
Prepared changes
commit
Local Repo
Commit history
push/fetch
Remote Server
GitHub/GitLab
The error involves the internal Git database or commit history structure.

Commands That Trigger This

$git status
Running after a computer crash and seeing a fatal index corruption error
$git commit
A blue screen occurring exactly while is writing to the index

Technical Background

01

While this looks terrifying, it is usually easy to recover from. The index is just a temporary cache of state.

02

Because the index is a staging cache rather than the commit history itself, this corruption usually affects the working-state snapshot more than the underlying committed objects.

Underlying Causes

A sudden power outage or system crash while running `git add` or `git commit`
A third-party file sync service (like Dropbox) corrupting the file during upload
Disk hardware failure

Frequently Asked Questions

No. The index only tracks uncommitted staged files. Your committed history is safe. Uncommitted changes are also still safe on your disk, they just became 'unstaged'.

Related Git States