Error map

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 · 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: 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 exists — fatal: a branch named 'x' already exists (Git)branch existshint: 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…git merge -X theirs vs ours (swapped during rebase) — (behavior) "ours" and "theirs" are reversed in git rebase (Git)git merge -X theirs…remote: error: refusing to delete the current branch — ! [remote rejected] main (deletion of the current branch prohibited) (Git)remote: error: refu…error: pathspec 'feature' did not match any file(s) known to git (remote-only branch) — error: pathspec 'feature/login' did not match any file(s) known to git (Git)error: pathspec 'fe…Rebase 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 …error: Cannot delete branch checked out at — error: Cannot delete branch 'main' checked out at '/home/user/repo' (Git)error: Cannot delet…fatal: branch is already checked out at (worktree) — fatal: 'feature/x' is already checked out at '/home/user/repo-wt' (Git)fatal: branch is al…fatal: invalid reference: branch — fatal: invalid reference: feature/login (Git)fatal: invalid refe…Bitbucket: Branch permissions prevent push — remote: Branch permissions: You are not allowed to push to branch main (Git)Bitbucket: Branch p…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 HEADuntracked files overwritten — error: The following untracked working tree files would be overwritten by checkout/merge (Git)untracked files ove…src refspec — error: src refspec main does not match any (Git)src refspecfatal: 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…warning: refname 'v1' is ambiguous — warning: refname 'release' is ambiguous. Git normally never creates a ref that ends with 40 hex characters (Git)warning: refname 'v…CONFLICT — Git: CONFLICT (content): Merge conflict in file — Automatic merge failed (Git)CONFLICTCONFLICT 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…non-bare push — ! [remote rejected] main -> main (branch is currently checked out) (Git)non-bare pushfatal: tag already exists — fatal: tag 'v1.0.0' already exists (Git)fatal: tag already …! [rejected] v1.0 -> v1.0 (already exists) — ! [rejected] v1.0.0 -> v1.0.0 (already exists) error: failed to push some refs (Git)! [rejected] v1.0 -…pathspec did not match — error: pathspec 'x' did not match any file(s) known to git (Git)pathspec did not ma…couldn't find remote ref (checkout) — GitHub Actions: fatal: couldn't find remote ref refs/heads/feature — The process '/usr/bin/git' failed with exit code 1 (actions/checkout) (CI/CD)couldn't find remot…! [rejected] tag -> tag (would clobber existing tag) — ! [rejected] v1.0 -> v1.0 (would clobber existing tag) (Git)! [rejected] tag ->…divergent branches — hint: You have divergent branches and need to specify how to reconcile them. (Git)divergent branchesgit bisect: some good revs are not ancestors of the bad rev — Some good revs are not ancestors of the bad rev. git bisect cannot work properly in this case. (Git)git bisect: some go…fatal: bad revision 'origin/main..HEAD' — fatal: bad revision 'origin/dev..HEAD' (Git)fatal: bad revision…reset — Connection reset during the TLS handshake (SNI filtering or DPI blocking the ClientHello) (SSL / TLS)resetstash@{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 …Commit unreachable after gc (reflog expired) — error: Could not read 4b825dc642cb6eb9a060e54bf8d69288fbee4904 / bad object after git gc (Git)Commit unreachable …Your branch is based on 'origin/x', but the upstream is gone — Your branch is based on 'origin/feature', but the upstream is gone. (Git)Your branch is base…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…fatal: 'x y' is not a valid branch name — fatal: 'feature/my branch' is not a valid branch name. (Git)fatal: 'x y' is not…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 existserror: invalid path 'aux.c' / unable to create file on Windows — error: invalid path 'docs/aux.md' fatal: unable to checkout working tree (Git)error: invalid path…fatal: Branch rename failed — fatal: Branch rename failed (Git)fatal: Branch renam…couldn't find remote ref — fatal: couldn't find remote ref main (Git)couldn't find remot…warning: You appear to have cloned an empty repository — warning: You appear to have cloned an empty repository. (Git)warning: You appear…error: No remote refs found for 'flathub' / Failed to install: Unable to load summary — error: Unable to load metadata from remote flathub: Unable to connect to flathub.org (Linux)error: No remote re…0x80070005 — Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied (Windows)0x80070005sudoers — user is not in the sudoers file. This incident will be reported. (Linux)sudoersRPC failed — error: RPC failed; HTTP 400 curl 22 / curl 92 HTTP/2 stream was not closed cleanly — the remote end hung up unexpectedly (Git)RPC failedchanges overwritten — error: Your local changes to the following files would be overwritten by merge (Git)changes overwrittenNo local changes to save — No local changes to save (Git)No local changes to…error: bad index file sha1 signature / index file corrupt — error: bad signature 0x00000000 fatal: index file corrupt (Git)error: bad index fi…

Directly related (12)

branch existsGit

fatal: a branch named 'x' already exists

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

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.

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.

remote: error: refusing to delete the current branchGit

! [remote rejected] main (deletion of the current branch prohibited)

The server won't delete its default branch.

error: pathspec 'feature' did not match any file(s) known to git (remote-only branch)Git

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

The branch exists only on the remote and isn't fetched or named correctly.

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.

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.

fatal: branch is already checked out at (worktree)Git

fatal: 'feature/x' is already checked out at '/home/user/repo-wt'

A branch can be checked out in only one worktree at a time.

fatal: invalid reference: branchGit

fatal: invalid reference: feature/login

Git can't find a branch or commit with that name.

Bitbucket: Branch permissions prevent pushGit

remote: Branch permissions: You are not allowed to push to branch main

Bitbucket branch restrictions reject your direct push.

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 (36)

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.

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.

src refspecGit

error: src refspec main does not match any

You pushed a branch name that doesn’t exist locally — usually no commits yet, or the branch is called master not main.

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.

warning: refname 'v1' is ambiguousGit

warning: refname 'release' is ambiguous. Git normally never creates a ref that ends with 40 hex characters

A branch and a tag share a name.

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.

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.

non-bare pushGit

! [remote rejected] main -> main (branch is currently checked out)

You pushed to a non-bare repository whose working tree has that branch checked out.

fatal: tag already existsGit

fatal: tag 'v1.0.0' already exists

A tag with that name exists already.

! [rejected] v1.0 -> v1.0 (already exists)Git

! [rejected] v1.0.0 -> v1.0.0 (already exists) error: failed to push some refs

The remote already has that tag pointing elsewhere.

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.

couldn't find remote ref (checkout)CI/CD

GitHub Actions: fatal: couldn't find remote ref refs/heads/feature — The process '/usr/bin/git' failed with exit code 1 (actions/checkout)

`actions/checkout` could not fetch the branch, tag or SHA it was asked for — it was deleted, never pushed, or is not reachable wi…

! [rejected] tag -> tag (would clobber existing tag)Git

! [rejected] v1.0 -> v1.0 (would clobber existing tag)

A fetched tag would replace one you already have with a different target.

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.

git bisect: some good revs are not ancestors of the bad revGit

Some good revs are not ancestors of the bad rev. git bisect cannot work properly in this case.

The commit you marked good isn't in the history of the bad one.

fatal: bad revision 'origin/main..HEAD'Git

fatal: bad revision 'origin/dev..HEAD'

Git doesn't know one side of the revision range.

resetSSL / TLS

Connection reset during the TLS handshake (SNI filtering or DPI blocking the ClientHello)

The TCP connection works, but it's reset right after the ClientHello, which points to a firewall filtering by SNI.

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.

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.

Your branch is based on 'origin/x', but the upstream is goneGit

Your branch is based on 'origin/feature', but the upstream is gone.

The remote branch was deleted (usually after merging a PR).

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.

fatal: 'x y' is not a valid branch nameGit

fatal: 'feature/my branch' is not a valid branch name.

The branch name contains characters Git forbids.

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.

error: invalid path 'aux.c' / unable to create file on WindowsGit

error: invalid path 'docs/aux.md' fatal: unable to checkout working tree

The repo has file names Windows can't create.

fatal: Branch rename failedGit

fatal: Branch rename failed

Git couldn't rename the 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.

warning: You appear to have cloned an empty repositoryGit

warning: You appear to have cloned an empty repository.

The remote has no commits yet.

error: No remote refs found for 'flathub' / Failed to install: Unable to load summaryLinux

error: Unable to load metadata from remote flathub: Unable to connect to flathub.org

Flatpak can't reach the remote.

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.

RPC failedGit

error: RPC failed; HTTP 400 curl 22 / curl 92 HTTP/2 stream was not closed cleanly — the remote end hung up unexpectedly

A large HTTPS push/clone broke mid-transfer — size limits, proxies or flaky HTTP/2.

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.

No local changes to saveGit

No local changes to save

`git stash` found nothing tracked to stash.

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.