Error map

error: you need to resolve your current index first error: you need to resolve your current index first

Git · layer 7, Build & delivery

Open the full error page →

Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

error: you need to resolve your current index first — error: you need to resolve your current index first (Git)error: you …unfinished merge — fatal: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you merge. (Git)unfinished mergeerror: open("file"): Permission denied / unable to index file — error: open("data/db.sqlite"): Permission denied error: unable to index file 'data/db.sqlite' fatal: adding files failed (Git)error: open("file")…error: could not write index (stash) — error: could not write index / Cannot save the current index state (Git)error: could not wr…CONFLICT during cherry-pick — error: could not apply a1b2c3d... Fix login bug / hint: After resolving the conflicts, mark them with git add/rm, then run git cherry-pick --continue (Git)CONFLICT during che…error: The branch is not fully merged — error: The branch 'feature/x' is not fully merged. If you are sure you want to delete it, run 'git branch -D feature/x'. (Git)error: The branch i…error: bad index file sha1 signature / index file corrupt — error: bad signature 0x00000000 fatal: index file corrupt (Git)error: bad index fi…error: Entry 'file' not uptodate. Cannot merge. — error: Entry 'app.js' not uptodate. Cannot merge. fatal: Merge with strategy recursive failed. (Git)error: Entry 'file'…fatal: multiple stage entries for merged file — error: Entry 'x' is a directory in one branch and a file in another (Git)fatal: multiple sta…Core Data: constraint violation (NSConstraintConflict) — Error Domain=NSCocoaErrorDomain Code=133021 "Could not merge changes." NSConstraintConflict (iOS)Core Data: constrai…String index is out of bounds — Fatal error: String index is out of bounds (iOS)String index is out…fatal: cannot do a partial commit during a merge — fatal: cannot do a partial commit during a merge. (Git)fatal: cannot do a …fatal: There is no merge to abort (MERGE_HEAD missing) — fatal: There is no merge to abort (MERGE_HEAD missing). (Git)fatal: There is no …CONFLICT — Git: CONFLICT (content): Merge conflict in file — Automatic merge failed (Git)CONFLICTchanges overwritten — error: Your local changes to the following files would be overwritten by merge (Git)changes overwrittennot possible to fast-forward — fatal: Not possible to fast-forward, aborting. (Git)not possible to fas…0x80070005 — Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied (Windows)0x80070005sudoers — user is not in the sudoers file. This incident will be reported. (Linux)sudoersUNPROTECTED PRIVATE KEY FILE — WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0644 for 'key.pem' are too open (Linux)UNPROTECTED PRIVATE…index.lock exists — fatal: Unable to create '.git/index.lock': File exists. Another git process seems to be running in this repository (Git)index.lock existsNo local changes to save — No local changes to save (Git)No local changes to…error: inflate: data stream error / loose object is corrupt — error: inflate: data stream error (incorrect header check) error: unable to unpack header (Git)error: inflate: dat…Windows has detected an IP address conflict — Networking: Windows has detected an IP address conflict / Duplicate address detected by 00:aa:bb:cc:dd:ee (Networking)Windows has detecte…cherry-pick: The previous cherry-pick is now empty — The previous cherry-pick is now empty, possibly due to conflict resolution. (Git)cherry-pick: The pr…Rebase stopped: CONFLICT (content), resolve then git rebase --continue — Resolve all conflicts manually, mark them as resolved with "git add/rm <conflicted_files>", then run "git rebase --continue". (Git)Rebase stopped: CON…branch exists — fatal: a branch named 'x' already exists (Git)branch existsRebase replays too many commits / unrelated histories — fatal: refusing to merge unrelated histories (Git)Rebase replays too …Lost commits after git reset --hard (recover with reflog) — HEAD is now at a1b2c3d Old commit (Git)Lost commits after …corrupt object — error: object file .git/objects/x is empty / fatal: loose object is corrupt (Git)corrupt objectAutomatic Repair couldn't repair your PC — Automatic Repair couldn't repair your PC — Log file: C:\Windows\System32\Logfiles\Srt\SrtTrail.txt (Windows)Automatic Repair co…Commit unreachable after gc (reflog expired) — error: Could not read 4b825dc642cb6eb9a060e54bf8d69288fbee4904 / bad object after git gc (Git)Commit unreachable …stash@{0} is not a valid reference — fatal: log for 'stash' only has 1 entries / stash@{3} is not a valid reference (Git)stash@{0} is not a …Duplicate resources / Resource compilation failed — Execution failed for task ':app:mergeDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable (Android)Duplicate resources…Untracked files lost after git stash -u / clean — (behavior) new files disappeared after stash or clean (Git)Untracked files los…fatal: destination path already exists and is not an empty directory — fatal: destination path 'repo' already exists and is not an empty directory. (Git)fatal: destination …CONFLICT (modify/delete): file deleted in one branch and modified in the other — CONFLICT (modify/delete): app.js deleted in HEAD and modified in feature. Version feature of app.js left in tree. (Git)CONFLICT (modify/de…CONFLICT (add/add): Merge conflict in file added on both branches — CONFLICT (add/add): Merge conflict in config.yml (Git)CONFLICT (add/add):…SQLiteConstraintException: UNIQUE constraint failed — android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: user.email (code 2067 SQLITE_CONSTRAINT_UNIQUE) (Android)SQLiteConstraintExc…rerere: Recorded resolution reused wrongly — Resolved 'app.js' using previous resolution. (Git)rerere: Recorded re…git merge -X theirs vs ours (swapped during rebase) — (behavior) "ours" and "theirs" are reversed in git rebase (Git)git merge -X theirs…Index out of range — Swift: Fatal error: Index out of range (iOS)Index out of rangeCannot convert value of type — Swift: Cannot convert value of type 'X' to expected argument type 'Y' (iOS)Cannot convert valu…IndexOutOfBoundsException: Index 5 out of bounds for length 3 — java.lang.IndexOutOfBoundsException: Index: 5, Size: 3 (Android)IndexOutOfBoundsExc…error: There was a problem with the editor 'vi' — error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option. (Git)error: There was a …nothing to commit, working tree clean — On branch main nothing to commit, working tree clean (Git)nothing to commit, …no changes added to commit (use git add and/or git commit -a) — Changes not staged for commit: modified: app.js no changes added to commit (Git)no changes added to…fatal: No rebase in progress? — fatal: No rebase in progress? (Git)fatal: No rebase in…You need to start by git bisect start — You need to start by "git bisect start" / We are not bisecting. (Git)You need to start b…fatal: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists) — error: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists). Please, commit your changes before you merge. (Git)fatal: You have not…

Directly related (12)

unfinished mergeGit

fatal: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you merge.

A merge is still in progress — conflicts were resolved (or not) but not committed.

error: open("file"): Permission denied / unable to index fileGit

error: open("data/db.sqlite"): Permission denied error: unable to index file 'data/db.sqlite' fatal: adding files failed

Git can't read a file to stage it.

error: could not write index (stash)Git

error: could not write index / Cannot save the current index state

Git couldn't write the index while stashing.

CONFLICT during cherry-pickGit

error: could not apply a1b2c3d... Fix login bug / hint: After resolving the conflicts, mark them with git add/rm, then run git cherry-pick --continue

The picked commit touches lines that differ on your branch.

error: The branch is not fully mergedGit

error: The branch 'feature/x' is not fully merged. If you are sure you want to delete it, run 'git branch -D feature/x'.

Git refuses to delete a branch whose commits aren't merged elsewhere.

error: bad index file sha1 signature / index file corruptGit

error: bad signature 0x00000000 fatal: index file corrupt

The staging area file `.git/index` is damaged.

error: Entry 'file' not uptodate. Cannot merge.Git

error: Entry 'app.js' not uptodate. Cannot merge. fatal: Merge with strategy recursive failed.

A file with uncommitted changes would be touched by the merge.

fatal: multiple stage entries for merged fileGit

error: Entry 'x' is a directory in one branch and a file in another

The index has conflicting entries for one path.

Core Data: constraint violation (NSConstraintConflict)iOS

Error Domain=NSCocoaErrorDomain Code=133021 "Could not merge changes." NSConstraintConflict

Two objects violate a uniqueness constraint.

String index is out of boundsiOS

Fatal error: String index is out of bounds

Accessing a character past the end of a string.

fatal: cannot do a partial commit during a mergeGit

fatal: cannot do a partial commit during a merge.

You tried to commit selected files in the middle of a merge.

fatal: There is no merge to abort (MERGE_HEAD missing)Git

fatal: There is no merge to abort (MERGE_HEAD missing).

You asked to abort a merge that isn't in progress.

Two steps away (36)

CONFLICTGit

Git: CONFLICT (content): Merge conflict in file — Automatic merge failed

Both branches changed the same lines; Git needs you to choose the final content before completing the merge/rebase.

changes overwrittenGit

error: Your local changes to the following files would be overwritten by merge

git pull/merge would modify files you’ve changed but not committed.

not possible to fast-forwardGit

fatal: Not possible to fast-forward, aborting.

pull is configured to fast-forward only, but your branch and the remote have diverged.

0x80070005Windows

Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied

Windows refused an operation because the account or process lacks permission — seen in Windows Update, installers, Task Scheduler…

sudoersLinux

user is not in the sudoers file. This incident will be reported.

Your account isn’t allowed to use sudo.

UNPROTECTED PRIVATE KEY FILELinux

WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0644 for 'key.pem' are too open

SSH refuses to use a private key that other users can read; it must be readable only by you (chmod 600).

index.lock existsGit

fatal: Unable to create '.git/index.lock': File exists. Another git process seems to be running in this repository

A lock file from another (or crashed) Git process blocks this command.

No local changes to saveGit

No local changes to save

`git stash` found nothing tracked to stash.

error: inflate: data stream error / loose object is corruptGit

error: inflate: data stream error (incorrect header check) error: unable to unpack header

A Git object file is damaged.

Windows has detected an IP address conflictNetworking

Networking: Windows has detected an IP address conflict / Duplicate address detected by 00:aa:bb:cc:dd:ee

Two devices on the same network are using the same IP address, so traffic reaches the wrong one or neither.

cherry-pick: The previous cherry-pick is now emptyGit

The previous cherry-pick is now empty, possibly due to conflict resolution.

The commit you picked has no changes left, because the same changes already exist on your branch.

Rebase stopped: CONFLICT (content), resolve then git rebase --continueGit

Resolve all conflicts manually, mark them as resolved with "git add/rm <conflicted_files>", then run "git rebase --continue".

A commit being replayed conflicts with the new base.

branch existsGit

fatal: a branch named 'x' already exists

You tried to create a branch whose name is already taken locally.

Rebase replays too many commits / unrelated historiesGit

fatal: refusing to merge unrelated histories

The two branches have no common ancestor, so Git refuses to merge them.

Lost commits after git reset --hard (recover with reflog)Git

HEAD is now at a1b2c3d Old commit

A hard reset moved the branch back and your newer commits look gone.

corrupt objectGit

error: object file .git/objects/x is empty / fatal: loose object is corrupt

The local Git object database is corrupted — usually after a crash, disk full or sync tool interference.

Automatic Repair couldn't repair your PCWindows

Automatic Repair couldn't repair your PC — Log file: C:\Windows\System32\Logfiles\Srt\SrtTrail.txt

Windows failed to boot repeatedly and Startup Repair couldn’t fix it; SrtTrail.txt records the root cause it found.

Commit unreachable after gc (reflog expired)Git

error: Could not read 4b825dc642cb6eb9a060e54bf8d69288fbee4904 / bad object after git gc

A dropped commit was removed because it was unreachable and expired.

stash@{0} is not a valid referenceGit

fatal: log for 'stash' only has 1 entries / stash@{3} is not a valid reference

The stash index doesn't exist.

Duplicate resources / Resource compilation failedAndroid

Execution failed for task ':app:mergeDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable

Resource merging failed, often from an invalid or duplicate resource file.

Untracked files lost after git stash -u / cleanGit

(behavior) new files disappeared after stash or clean

Untracked files were stashed or deleted.

fatal: destination path already exists and is not an empty directoryGit

fatal: destination path 'repo' already exists and is not an empty directory.

The target folder exists and has files.

CONFLICT (modify/delete): file deleted in one branch and modified in the otherGit

CONFLICT (modify/delete): app.js deleted in HEAD and modified in feature. Version feature of app.js left in tree.

One branch deleted a file while the other changed it.

CONFLICT (add/add): Merge conflict in file added on both branchesGit

CONFLICT (add/add): Merge conflict in config.yml

Both branches created the same file with different content.

SQLiteConstraintException: UNIQUE constraint failedAndroid

android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: user.email (code 2067 SQLITE_CONSTRAINT_UNIQUE)

An insert or update violated a unique index or primary key.

rerere: Recorded resolution reused wronglyGit

Resolved 'app.js' using previous resolution.

git rerere re-applied an earlier conflict resolution you didn't want.

git merge -X theirs vs ours (swapped during rebase)Git

(behavior) "ours" and "theirs" are reversed in git rebase

During a rebase Git's "ours" is the branch you rebase onto, and "theirs" is your own commit.

Index out of rangeiOS

Swift: Fatal error: Index out of range

Code accessed an array index that doesn’t exist — empty arrays, off-by-one loops, or data changing while a table reloads.

Cannot convert value of typeiOS

Swift: Cannot convert value of type 'X' to expected argument type 'Y'

The value’s type doesn’t match what the function or property expects.

IndexOutOfBoundsException: Index 5 out of bounds for length 3Android

java.lang.IndexOutOfBoundsException: Index: 5, Size: 3

The code read a list or array position that doesn't exist.

error: There was a problem with the editor 'vi'Git

error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option.

Git couldn't open your configured editor to collect a message or todo list.

nothing to commit, working tree cleanGit

On branch main nothing to commit, working tree clean

Git sees no changes to commit.

no changes added to commit (use git add and/or git commit -a)Git

Changes not staged for commit: modified: app.js no changes added to commit

Edits exist but none are staged.

fatal: No rebase in progress?Git

fatal: No rebase in progress?

You ran `git rebase --continue` or `--abort` when no rebase is active.

You need to start by git bisect startGit

You need to start by "git bisect start" / We are not bisecting.

A bisect command was used before starting or after finishing.

fatal: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists)Git

error: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists). Please, commit your changes before you merge.

A previous cherry-pick is still open.