Error map

fatal: Cannot rebase onto multiple branches fatal: Cannot rebase onto multiple branches.

Git · layer 7, Build & delivery

Open the full error page →

Centre: this error. First ring: errors it is linked with (11). 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 rebase onto multiple branches — fatal: Cannot rebase onto multiple branches. (Git)fatal: Cann…error: unable to resolve reference 'refs/heads/main': reference broken — fatal: bad object refs/heads/main (Git)error: unable to re…error: Ref refs/heads/main is at X but expected Y — error: failed to update ref: refs/heads/main is at a1b2 but expected c3d4 (Git)error: Ref refs/hea…error: cannot update the ref 'HEAD': unable to append to logs — error: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Permission denied (Git)error: cannot updat…hint: You have divergent branches and need to specify how to reconcile them (pull.rebase) — hint: Pulling without specifying how to reconcile divergent branches is discouraged. (Git)hint: You have dive…git merge -X theirs vs ours (swapped during rebase) — (behavior) "ours" and "theirs" are reversed in git rebase (Git)git merge -X theirs…fatal: Branch rename failed — fatal: Branch rename failed (Git)fatal: Branch renam…Ambiguous use of 'init' / trailing closure — error: ambiguous use of 'init(content:)' (iOS)Ambiguous use of 'i…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…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…git rebase --autosquash did not reorder fixup commits — (behavior) fixup! commits left in place after rebase -i --autosquash (Git)git rebase --autosq…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…corrupt object — error: object file .git/objects/x is empty / fatal: loose object is corrupt (Git)corrupt objectbroken ref — warning: ignoring broken ref refs/remotes/origin/HEAD (Git)broken referror: inflate: data stream error / loose object is corrupt — error: inflate: data stream error (incorrect header check) error: unable to unpack header (Git)error: inflate: dat…non-fast-forward — Git: ! [rejected] … (fetch first) — error: failed to push some refs (Git)non-fast-forwardsrc refspec — error: src refspec main does not match any (Git)src refspecRPC 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 failed0x80070005 — Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied (Windows)0x80070005UNPROTECTED PRIVATE KEY FILE — WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0644 for 'key.pem' are too open (Linux)UNPROTECTED PRIVATE…Resource not accessible by integration — GitHub Actions: Error: Resource not accessible by integration (403) (CI/CD)Resource not access…divergent branches — hint: You have divergent branches and need to specify how to reconcile them. (Git)divergent branchesno "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:…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…fatal: No rebase in progress? — fatal: No rebase in progress? (Git)fatal: No rebase in…branch exists — fatal: a branch named 'x' already exists (Git)branch existserror: 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: Cannot delete branch checked out at — error: Cannot delete branch 'main' checked out at '/home/user/repo' (Git)error: Cannot delet…Type of expression is ambiguous — Swift: Type of expression is ambiguous without a type annotation (more context) (iOS)Type of expression …Value of optional type must be unwrapped — error: Value of optional type 'String?' must be unwrapped to a value of type 'String' (iOS)Value of optional t…Missing return in a function expected to return — error: Missing return in a function expected to return 'Int' (iOS)Missing return in a…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 progresserror: 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 …rerere: Recorded resolution reused wrongly — Resolved 'app.js' using previous resolution. (Git)rerere: Recorded re…unknown revision HEAD — fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. (Git)unknown revision HE…fatal: tag already exists — fatal: tag 'v1.0.0' already exists (Git)fatal: tag already …! [rejected] tag -> tag (would clobber existing tag) — ! [rejected] v1.0 -> v1.0 (would clobber existing tag) (Git)! [rejected] tag ->…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…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…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…

Directly related (11)

error: unable to resolve reference 'refs/heads/main': reference brokenGit

fatal: bad object refs/heads/main

A branch file under `.git/refs` is corrupt or empty.

error: Ref refs/heads/main is at X but expected YGit

error: failed to update ref: refs/heads/main is at a1b2 but expected c3d4

Another process changed the ref while Git updated it.

error: cannot update the ref 'HEAD': unable to append to logsGit

error: cannot update the ref 'HEAD': unable to append to '.git/logs/HEAD': Permission denied

Git can't write reflog or ref files.

hint: You have divergent branches and need to specify how to reconcile them (pull.rebase)Git

hint: Pulling without specifying how to reconcile divergent branches is discouraged.

Git asks you to choose merge or rebase when pulling diverged branches.

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.

fatal: Branch rename failedGit

fatal: Branch rename failed

Git couldn't rename the branch.

Ambiguous use of 'init' / trailing closureiOS

error: ambiguous use of 'init(content:)'

Overloads match the call equally.

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.

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.

git rebase --autosquash did not reorder fixup commitsGit

(behavior) fixup! commits left in place after rebase -i --autosquash

Fixup commits weren't matched to their targets.

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.

Two steps away (32)

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.

broken refGit

warning: ignoring broken ref refs/remotes/origin/HEAD

A ref file is empty or points to a missing object — usually refs/remotes/origin/HEAD after the default branch changed.

error: inflate: data stream error / loose object is corruptGit

error: inflate: data stream error (incorrect header check) error: unable to unpack header

A Git object file is damaged.

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.

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.

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.

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…

UNPROTECTED PRIVATE KEY FILELinux

WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0644 for 'key.pem' are too open

SSH refuses to use a private key that other users can read; it must be readable only by you (chmod 600).

Resource not accessible by integrationCI/CD

GitHub Actions: Error: Resource not accessible by integration (403)

The workflow’s GITHUB_TOKEN doesn’t have the permission needed for that API call (comment, push, create release, write packages).

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.

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.

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.

fatal: No rebase in progress?Git

fatal: No rebase in progress?

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

branch existsGit

fatal: a branch named 'x' already exists

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

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

Type of expression is ambiguousiOS

Swift: Type of expression is ambiguous without a type annotation (more context)

The compiler can’t infer which type you mean — often because of a typo or a wrong argument elsewhere in the expression.

Value of optional type must be unwrappediOS

error: Value of optional type 'String?' must be unwrapped to a value of type 'String'

You used an optional where a non-optional value is required.

Missing return in a function expected to returniOS

error: Missing return in a function expected to return 'Int'

A code path in your function ends without returning a value.

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

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.

rerere: Recorded resolution reused wronglyGit

Resolved 'app.js' using previous resolution.

git rerere re-applied an earlier conflict resolution you didn't want.

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.

fatal: tag already existsGit

fatal: tag 'v1.0.0' already exists

A tag with that name exists already.

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

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.

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.

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.