Error map
Rebase replays too many commits / unrelated histories fatal: refusing to merge unrelated histories
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)
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: ! [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 commits: a1b2c3d...
A bundle was made relative to commits you don't have.
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/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 repository.
The remote has no commits yet.
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.
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 '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/dev..HEAD'
Git doesn't know one side of the revision range.
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.
Error Domain=NSCocoaErrorDomain Code=133021 "Could not merge changes." NSConstraintConflict
Two objects violate a uniqueness constraint.
Two steps away (36)
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.
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.
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.
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: 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.
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.
fatal: early EOF — fatal: index-pack failed
A clone or fetch was cut off mid-transfer.
fatal: Not a valid object name: 'main'.
The branch or commit doesn’t exist yet — typically in a new repo before the first commit.
! [rejected] main -> main (non-fast-forward) after amend
Amending a pushed commit rewrites history, so the remote refuses the push.
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`.
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: 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.
error: pathspec 'x' did not match any file(s) known to git
Git couldn’t find the file or branch name you referenced.
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 'v1.0.0' already exists
A tag with that name exists already.
fatal: couldn't find remote ref main
The branch you tried to pull/fetch doesn’t exist on the remote.
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: feature/login
Git can't find a branch or commit with that name.
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.
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.
The stash entry is kept in case you need it again.
Applying your stash conflicted with the working tree.
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 start" / We are not bisecting.
A bisect command was used before starting or after finishing.
fatal: --unshallow on a complete repository does not make sense
You asked to deepen a repo that is already complete.
fatal: a branch named 'x' already exists
You tried to create a branch whose name is already taken locally.
HEAD is now at a1b2c3d Old commit
A hard reset moved the branch back and your newer commits look gone.
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 rejected] main (deletion of the current branch prohibited)
The server won't delete its default branch.
error: No such remote 'origin'
The repository has no remote named origin.
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 save
`git stash` found nothing tracked to stash.
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.
On branch main nothing to commit, working tree clean
Git sees no changes to commit.
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.