Error map

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

Git · layer 7, Build & delivery

Open the full error page →

Centre: this error. First ring: errors it is linked with (9). 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.

changes overwritten — error: Your local changes to the following files would be overwritten by merge (Git)changes ove…overwritten by checkout — error: Your local changes to the following files would be overwritten by checkout (Git)overwritten by chec…untracked files overwritten — error: The following untracked working tree files would be overwritten by checkout/merge (Git)untracked files ove…cannot rebase — error: cannot pull with rebase: You have unstaged changes. Please commit or stash them. (Git)cannot rebaseunfinished 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)CONFLICTnot possible to fast-forward — fatal: Not possible to fast-forward, aborting. (Git)not possible to fas…git stash pop: CONFLICT, stash entry is kept — The stash entry is kept in case you need it again. (Git)git stash pop: CONF…error: the following file has local modifications (git rm) — error: the following file has local modifications: app.js (use --cached to keep the file, or -f to force removal) (Git)error: the followin…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'…non-fast-forward — Git: ! [rejected] … (fetch first) — error: failed to push some refs (Git)non-fast-forwarddetached HEAD — You are in 'detached HEAD' state. (Git)detached HEADcouldn't find remote ref — fatal: couldn't find remote ref main (Git)couldn't find remot…Authentication failed — fatal: Authentication failed for 'https://github.com/x/y.git/' (Git)Authentication fail…cannot lock ref — error: cannot lock ref 'refs/remotes/origin/x': is at … but expected … / unable to update local ref (Git)cannot lock refunknown revision HEAD — fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. (Git)unknown revision HE…rebase 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 progresssubmodule url — fatal: No url found for submodule path 'x' in .gitmodules (Git)submodule urlLFS smudge error — Error downloading object: x: Smudge error / This repository is over its data quota (Git)LFS smudge errorindex.lock exists — fatal: Unable to create '.git/index.lock': File exists. Another git process seems to be running in this repository (Git)index.lock existscorrupt object — error: object file .git/objects/x is empty / fatal: loose object is corrupt (Git)corrupt objectgc warning — warning: There are too many unreachable loose objects; run 'git prune' to remove them. (Git)gc warningunrelated histories — Git: fatal: refusing to merge unrelated histories (Git)unrelated historiesCONFLICT 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…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…divergent branches — hint: You have divergent branches and need to specify how to reconcile them. (Git)divergent branchesbranch exists — fatal: a branch named 'x' already exists (Git)branch existsNo local changes to save — No local changes to save (Git)No local changes to…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 …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…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…Applying: patch failed. When you have resolved this problem, run git am --continue — Patch failed at 0001 Fix bug. hint: Use 'git am --show-current-patch' to see the failed patch (Git)Applying: patch fai…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…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…

Directly related (9)

overwritten by checkoutGit

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

Switching branches would discard uncommitted changes in files that differ between branches.

untracked files overwrittenGit

error: The following untracked working tree files would be overwritten by checkout/merge

Untracked local files have the same paths as files coming from the other branch.

cannot rebaseGit

error: cannot pull with rebase: You have unstaged changes. Please commit or stash them.

A rebase (or pull --rebase) needs a clean working tree.

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.

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.

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.

error: the following file has local modifications (git rm)Git

error: the following file has local modifications: app.js (use --cached to keep the file, or -f to force removal)

`git rm` refuses to delete a file with uncommitted changes.

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.

Two steps away (26)

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.

detached HEADGit

You are in 'detached HEAD' state.

HEAD points at a commit instead of a branch, so new commits won’t belong to any branch.

couldn't find remote refGit

fatal: couldn't find remote ref main

The branch you tried to pull/fetch doesn’t exist on the remote.

Authentication failedGit

fatal: Authentication failed for 'https://github.com/x/y.git/'

HTTPS authentication to the Git host failed — wrong or expired credentials, or a password used where a token is required.

cannot lock refGit

error: cannot lock ref 'refs/remotes/origin/x': is at … but expected … / unable to update local ref

Git couldn’t update a reference — stale remote-tracking refs, case-only branch name clashes, or a leftover lock file.

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.

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

submodule urlGit

fatal: No url found for submodule path 'x' in .gitmodules

A submodule entry exists in the index but its URL is missing from .gitmodules.

LFS smudge errorGit

Error downloading object: x: Smudge error / This repository is over its data quota

Git LFS couldn’t download a large file — missing LFS install, auth problems, or the LFS bandwidth/storage quota is exhausted.

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.

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.

gc warningGit

warning: There are too many unreachable loose objects; run 'git prune' to remove them.

Git’s automatic garbage collection found many unreachable objects and is asking you to prune.

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.

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.

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.

divergent branchesGit

hint: You have divergent branches and need to specify how to reconcile them.

Git 2.27+ asks you to choose merge, rebase or fast-forward-only when local and remote both have new commits.

branch existsGit

fatal: a branch named 'x' already exists

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

No local changes to saveGit

No local changes to save

`git stash` found nothing tracked to stash.

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.

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.

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.

Applying: patch failed. When you have resolved this problem, run git am --continueGit

Patch failed at 0001 Fix bug. hint: Use 'git am --show-current-patch' to see the failed patch

`git am` stopped on a patch that doesn't apply.

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.

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.