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
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.
Directly related (12)
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("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 / Cannot save the current index state
Git couldn't write the index while stashing.
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 '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 signature 0x00000000 fatal: index file corrupt
The staging area file `.git/index` is damaged.
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.
error: Entry 'x' is a directory in one branch and a file in another
The index has conflicting entries for one path.
Error Domain=NSCocoaErrorDomain Code=133021 "Could not merge changes." NSConstraintConflict
Two objects violate a uniqueness constraint.
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 merge.
You tried to commit selected files in the middle of a merge.
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)
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.
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.
fatal: Not possible to fast-forward, aborting.
pull is configured to fast-forward only, but your branch and the remote have diverged.
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…
user is not in the sudoers file. This incident will be reported.
Your account isn’t allowed to use sudo.
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).
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 save
`git stash` found nothing tracked to stash.
error: inflate: data stream error (incorrect header check) error: unable to unpack header
A Git object file is damaged.
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.
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.
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.
fatal: a branch named 'x' already exists
You tried to create a branch whose name is already taken locally.
fatal: refusing to merge unrelated histories
The two branches have no common ancestor, so Git refuses to merge them.
HEAD is now at a1b2c3d Old commit
A hard reset moved the branch back and your newer commits look gone.
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 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.
error: Could not read 4b825dc642cb6eb9a060e54bf8d69288fbee4904 / bad object after git gc
A dropped commit was removed because it was unreachable and expired.
fatal: log for 'stash' only has 1 entries / stash@{3} is not a valid reference
The stash index doesn't exist.
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.
(behavior) new files disappeared after stash or clean
Untracked files were stashed or deleted.
fatal: destination path 'repo' already exists and is not an empty directory.
The target folder exists and has files.
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 config.yml
Both branches created the same file with different content.
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.
Resolved 'app.js' using previous resolution.
git rerere re-applied an earlier conflict resolution you didn't want.
(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.
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.
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.
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'. Please supply the message using either -m or -F option.
Git couldn't open your configured editor to collect a message or todo list.
On branch main nothing to commit, working tree clean
Git sees no changes to commit.
Changes not staged for commit: modified: app.js no changes added to commit
Edits exist but none are staged.
fatal: No rebase in progress?
You ran `git rebase --continue` or `--abort` when no rebase is active.
You need to start by "git bisect start" / We are not bisecting.
A bisect command was used before starting or after finishing.
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.