Error map

fatal: cannot do a partial commit during a merge fatal: cannot do a partial commit during a merge.

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.

fatal: cannot do a partial commit during a merge — fatal: cannot do a partial commit during a merge. (Git)fatal: cann…unfinished merge — fatal: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you merge. (Git)unfinished mergeCONFLICT — Git: CONFLICT (content): Merge conflict in file — Automatic merge failed (Git)CONFLICTgit merge -X theirs vs ours (swapped during rebase) — (behavior) "ours" and "theirs" are reversed in git rebase (Git)git merge -X theirs…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…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: 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 …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…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: your current branch 'main' does not have any commits yet — fatal: your current branch 'main' does not have any commits yet (Git)fatal: your current…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'…merge driver 'x' not found / custom merge driver failed — error: cannot run merge driver / fatal: unable to run merge driver (Git)merge driver 'x' no…changes 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…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 existsnon-fast-forward — Git: ! [rejected] … (fetch first) — error: failed to push some refs (Git)non-fast-forwardunrelated histories — Git: fatal: refusing to merge unrelated histories (Git)unrelated historiesrebase in progress — fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase. (Git)rebase in progressRebase 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…fatal: No rebase in progress? — fatal: No rebase in progress? (Git)fatal: No rebase in…CONFLICT (add/add): Merge conflict in file added on both branches — CONFLICT (add/add): Merge conflict in config.yml (Git)CONFLICT (add/add):…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…fatal: object is a tree, not a commit — fatal: a1b2c3d is a tree, not a commit / error: object a1b2c3d is a tree, not a commit (Git)fatal: object is a …error: pathspec 'text' did not match any file(s) known to git (unquoted -m message) — error: pathspec 'fix' did not match any file(s) known to git error: pathspec 'login' did not match any file(s) known to git (Git)error: pathspec 'te…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…Rebase replays too many commits / unrelated histories — fatal: refusing to merge unrelated histories (Git)Rebase replays too …git stash pop: CONFLICT, stash entry is kept — The stash entry is kept in case you need it again. (Git)git stash pop: CONF…author identity unknown — Author identity unknown *** Please tell me who you are. (Git)author identity unk…fatal: bad config line 5 in file .git/config — fatal: bad config line 12 in file /home/user/.gitconfig (Git)fatal: bad config l…fatal: could not open .git-blame-ignore-revs — fatal: invalid object name 'abc...' in ignore-revs-file (Git)fatal: could not op…branch exists — fatal: a branch named 'x' already exists (Git)branch existsLost commits after git reset --hard (recover with reflog) — HEAD is now at a1b2c3d Old commit (Git)Lost commits after …error: Cannot delete branch checked out at — error: Cannot delete branch 'main' checked out at '/home/user/repo' (Git)error: Cannot delet…No local changes to save — No local changes to save (Git)No local changes to…The following paths are ignored by one of your .gitignore files — The following paths are ignored by one of your .gitignore files: dist hint: Use -f if you really want to add them. (Git)The following paths….gitignore not ignoring a file already tracked — (behavior) file still shows in git status after adding to .gitignore (Git).gitignore not igno…pathspec did not match — error: pathspec 'x' did not match any file(s) known to git (Git)pathspec did not ma…fatal: pathspec 'x' is beyond a symbolic link — fatal: pathspec 'link/file.txt' is beyond a symbolic link (Git)fatal: pathspec 'x'…error: 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")…unknown revision HEAD — fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. (Git)unknown revision HE…'self' captured by a closure before all members were initialized — error: 'self' captured by a closure before all members were initialized (iOS)'self' captured by …hint: Using 'master' as the name for the initial branch — hint: Using 'master' as the name for the initial branch. This default branch name is subject to change. (Git)hint: Using 'master…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 …error: bad index file sha1 signature / index file corrupt — error: bad signature 0x00000000 fatal: index file corrupt (Git)error: bad index fi…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…No Wi-Fi adapter found / Wi-Fi option missing — Networking: No Wi-Fi networks found — the Wi-Fi adapter is missing, disabled or its driver failed (Networking)No Wi-Fi adapter fo…hint: The 'pre-commit' hook was ignored because it's not set as executable — hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable. (Git)hint: The 'pre-comm…warning: Cannot merge binary files — warning: Cannot merge binary files: image.png (HEAD vs. feature) (Git)warning: Cannot mer…

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.

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.

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.

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.

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: 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.

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.

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: your current branch 'main' does not have any commits yetGit

fatal: your current branch 'main' does not have any commits yet

Commands needing history ran in a brand-new repo.

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.

merge driver 'x' not found / custom merge driver failedGit

error: cannot run merge driver / fatal: unable to run merge driver

.gitattributes references a merge driver that isn't configured.

Two steps away (36)

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.

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.

non-fast-forwardGit

Git: ! [rejected] … (fetch first) — error: failed to push some refs

The remote branch has commits you don’t have locally, so Git refuses to overwrite them. Pull (merge or rebase) first, then push.

unrelated historiesGit

Git: fatal: refusing to merge unrelated histories

The two branches have no common ancestor — typically a local repo and a remote that were both initialized separately.

rebase in progressGit

fatal: It seems that there is already a rebase-merge directory, and I wonder if you are in the middle of another rebase.

A previous rebase is still in progress (or was interrupted).

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.

fatal: No rebase in progress?Git

fatal: No rebase in progress?

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

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.

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.

fatal: object is a tree, not a commitGit

fatal: a1b2c3d is a tree, not a commit / error: object a1b2c3d is a tree, not a commit

A command wanted a commit but got a tree.

error: pathspec 'text' did not match any file(s) known to git (unquoted -m message)Git

error: pathspec 'fix' did not match any file(s) known to git error: pathspec 'login' did not match any file(s) known to git

A commit message without quotes was split into file names.

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.

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.

git stash pop: CONFLICT, stash entry is keptGit

The stash entry is kept in case you need it again.

Applying your stash conflicted with the working tree.

author identity unknownGit

Author identity unknown *** Please tell me who you are.

Git doesn’t know your name and email for commits.

fatal: bad config line 5 in file .git/configGit

fatal: bad config line 12 in file /home/user/.gitconfig

A Git config file has invalid syntax.

fatal: could not open .git-blame-ignore-revsGit

fatal: invalid object name 'abc...' in ignore-revs-file

git blame can't read the ignore-revs file or a hash in it is invalid.

branch existsGit

fatal: a branch named 'x' already exists

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

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.

error: Cannot delete branch checked out atGit

error: Cannot delete branch 'main' checked out at '/home/user/repo'

You can't delete a branch that is checked out in this or another worktree.

No local changes to saveGit

No local changes to save

`git stash` found nothing tracked to stash.

The following paths are ignored by one of your .gitignore filesGit

The following paths are ignored by one of your .gitignore files: dist hint: Use -f if you really want to add them.

You tried to add a file that .gitignore excludes.

.gitignore not ignoring a file already trackedGit

(behavior) file still shows in git status after adding to .gitignore

Git keeps tracking files that were committed before you ignored them.

pathspec did not matchGit

error: pathspec 'x' did not match any file(s) known to git

Git couldn’t find the file or branch name you referenced.

fatal: pathspec 'x' is beyond a symbolic linkGit

fatal: pathspec 'link/file.txt' is beyond a symbolic link

You tried to add a path through a symlink.

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.

unknown revision HEADGit

fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.

The repository has no commits yet (or the ref doesn’t exist), so HEAD can’t be resolved.

'self' captured by a closure before all members were initializediOS

error: 'self' captured by a closure before all members were initialized

A closure uses `self` before all stored properties are set.

hint: Using 'master' as the name for the initial branchGit

hint: Using 'master' as the name for the initial branch. This default branch name is subject to change.

A harmless hint: Git's default initial branch name is configurable.

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.

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.

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.

No Wi-Fi adapter found / Wi-Fi option missingNetworking

Networking: No Wi-Fi networks found — the Wi-Fi adapter is missing, disabled or its driver failed

The operating system doesn't see a working wireless adapter, so no networks can be listed.

hint: The 'pre-commit' hook was ignored because it's not set as executableGit

hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable.

Git skipped your hook because it lacks exec permission.

warning: Cannot merge binary filesGit

warning: Cannot merge binary files: image.png (HEAD vs. feature)

Git can't merge binary files line by line.