Error map

Rebase replays too many commits / unrelated histories fatal: refusing to merge unrelated histories

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.

Rebase replays too many commits / unrelated histories — fatal: refusing to merge unrelated histories (Git)Rebase repl…divergent branches — hint: You have divergent branches and need to specify how to reconcile them. (Git)divergent branchesnon-fast-forward — Git: ! [rejected] … (fetch first) — error: failed to push some refs (Git)non-fast-forwarderror: Repository lacks these prerequisite commits — error: Repository lacks these prerequisite commits: a1b2c3d... (Git)error: Repository l…fatal: could not open .git-blame-ignore-revs — fatal: invalid object name 'abc...' in ignore-revs-file (Git)fatal: could not op…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…warning: You appear to have cloned an empty repository — warning: You appear to have cloned an empty repository. (Git)warning: You appear…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…git 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…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…fatal: bad revision 'origin/main..HEAD' — fatal: bad revision 'origin/dev..HEAD' (Git)fatal: bad revision…Your branch and 'origin/main' have diverged — Your branch and 'origin/main' have diverged, and have 2 and 3 different commits each, respectively. (Git)Your branch and 'or…Core Data: constraint violation (NSConstraintConflict) — Error Domain=NSCocoaErrorDomain Code=133021 "Could not merge changes." NSConstraintConflict (iOS)Core Data: constrai…413 — HTTP 413 Content Too Large (Request Entity Too Large) (HTTP)413redirect_uri_mismatch — OAuth Error: redirect_uri_mismatch (Authentication)redirect_uri_mismat…DB connection — WordPress: Error Establishing a Database Connection (WordPress)DB connectionCONFLICT — Git: CONFLICT (content): Merge conflict in file — Automatic merge failed (Git)CONFLICTpublickey — Git: Permission denied (publickey). fatal: Could not read from remote repository. (Git)publickeyunrelated histories — Git: fatal: refusing to merge unrelated histories (Git)unrelated historiesearly EOF — fatal: early EOF — fatal: index-pack failed (Git)early EOFnot a valid object name — fatal: Not a valid object name: 'main'. (Git)not a valid object …Updates were rejected after git commit --amend (rewrote pushed commit) — ! [rejected] main -> main (non-fast-forward) after amend (Git)Updates were reject…no "ssl_certificate" is defined for the "listen ... ssl" directive — Nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-enabled/default:3 (SSL / TLS)no "ssl_certificate…SSLCertificateFile: file does not exist — Apache: AH02240: Server should be SSL-aware but has no certificate configured / SSLCertificateFile: file '/etc/ssl/x.crt' does not exist or is empty (SSL / TLS)SSLCertificateFile:…openssl.cnf — OpenSSL: Can't open openssl.cnf for reading / error loading config file (SSL / TLS)openssl.cnfpathspec 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…fatal: tag already exists — fatal: tag 'v1.0.0' already exists (Git)fatal: tag already …couldn't find remote ref — fatal: couldn't find remote ref main (Git)couldn't find remot…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…fatal: invalid reference: branch — fatal: invalid reference: feature/login (Git)fatal: invalid refe…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 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…git stash pop: CONFLICT, stash entry is kept — The stash entry is kept in case you need it again. (Git)git stash pop: CONF…unknown revision HEAD — fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. (Git)unknown revision HE…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: --unshallow on a complete repository does not make sense — fatal: --unshallow on a complete repository does not make sense (Git)fatal: --unshallow …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…remote: error: refusing to delete the current branch — ! [remote rejected] main (deletion of the current branch prohibited) (Git)remote: error: refu…fatal: 'origin' does not appear / No such remote 'origin' — error: No such remote 'origin' (Git)fatal: 'origin' doe…warning: redirecting to https://github.com/new-org/repo.git/ — remote: This repository moved. Please use the new location: https://github.com/new-org/repo.git (Git)warning: redirectin…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…nothing to commit, working tree clean — On branch main nothing to commit, working tree clean (Git)nothing to commit, …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…

Directly related (12)

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.

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.

error: Repository lacks these prerequisite commitsGit

error: Repository lacks these prerequisite commits: a1b2c3d...

A bundle was made relative to commits you don't have.

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.

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.

warning: You appear to have cloned an empty repositoryGit

warning: You appear to have cloned an empty repository.

The remote has no commits yet.

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.

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.

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.

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

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

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

Your branch and 'origin/main' have divergedGit

Your branch and 'origin/main' have diverged, and have 2 and 3 different commits each, respectively.

Both your local branch and the remote have new commits.

Core Data: constraint violation (NSConstraintConflict)iOS

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

Two objects violate a uniqueness constraint.

Two steps away (36)

413HTTP

HTTP 413 Content Too Large (Request Entity Too Large)

The request body is bigger than the server is willing to accept — usually a file upload over the configured limit.

redirect_uri_mismatchAuthentication

OAuth Error: redirect_uri_mismatch

The redirect URI in your OAuth request doesn’t exactly match one registered for the client in the provider’s console.

DB connectionWordPress

WordPress: Error Establishing a Database Connection

WordPress can’t connect to its MySQL/MariaDB database with the credentials in wp-config.php, or the database server is down.

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.

publickeyGit

Git: Permission denied (publickey). fatal: Could not read from remote repository.

SSH authentication to GitHub/GitLab/Bitbucket failed — no key, wrong key, or the key isn’t added to your account.

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.

early EOFGit

fatal: early EOF — fatal: index-pack failed

A clone or fetch was cut off mid-transfer.

not a valid object nameGit

fatal: Not a valid object name: 'main'.

The branch or commit doesn’t exist yet — typically in a new repo before the first commit.

Updates were rejected after git commit --amend (rewrote pushed commit)Git

! [rejected] main -> main (non-fast-forward) after amend

Amending a pushed commit rewrites history, so the remote refuses the push.

no "ssl_certificate" is defined for the "listen ... ssl" directiveSSL / TLS

Nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-enabled/default:3

A server block listens with `ssl` but has no `ssl_certificate` and `ssl_certificate_key`.

SSLCertificateFile: file does not existSSL / TLS

Apache: AH02240: Server should be SSL-aware but has no certificate configured / SSLCertificateFile: file '/etc/ssl/x.crt' does not exist or is empty

Apache cannot find the certificate or key file named in its configuration, or `SSLEngine on` is set without any certificate.

openssl.cnfSSL / TLS

OpenSSL: Can't open openssl.cnf for reading / error loading config file

OpenSSL can't find or parse its configuration file, so `req`, `ca` or `x509` commands abort.

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…

fatal: tag already existsGit

fatal: tag 'v1.0.0' already exists

A tag with that name exists already.

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.

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.

fatal: invalid reference: branchGit

fatal: invalid reference: feature/login

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

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

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.

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.

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: --unshallow on a complete repository does not make senseGit

fatal: --unshallow on a complete repository does not make sense

You asked to deepen a repo that is already complete.

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.

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.

fatal: 'origin' does not appear / No such remote 'origin'Git

error: No such remote 'origin'

The repository has no remote named origin.

warning: redirecting to https://github.com/new-org/repo.git/Git

remote: This repository moved. Please use the new location: https://github.com/new-org/repo.git

The repository was renamed or transferred.

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.

nothing to commit, working tree cleanGit

On branch main nothing to commit, working tree clean

Git sees no changes to commit.

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.