Error map

! [rejected] (stale info) force-with-lease ! [rejected] main -> main (stale info)

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.

! [rejected] (stale info) force-with-lease — ! [rejected] main -> main (stale info) (Git)! [rejected…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-forward! [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 -…Updates were rejected after git commit --amend (rewrote pushed commit) — ! [rejected] main -> main (non-fast-forward) after amend (Git)Updates were reject…GitLab: You are not allowed to push code to protected branches — remote: GitLab: You are not allowed to push code to protected branches on this project. (Git)GitLab: You are not…Bitbucket: Branch permissions prevent push — remote: Branch permissions: You are not allowed to push to branch main (Git)Bitbucket: Branch p…Azure DevOps: TF401019 / VS403 push rejected — remote: TF401027: You need the GenericContribute permission to perform this action. (Git)Azure DevOps: TF401…ITMS-90078: Missing Push Notification Entitlement — ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service (iOS)ITMS-90078: Missing…APNs: 410 Unregistered / DeviceTokenNotForTopic — {"reason":"Unregistered","timestamp":1700000000} (iOS)APNs: 410 Unregiste…Notification Service Extension not modifying push content — (behavior) rich push image/mutable-content not working (iOS)Notification Servic…Azure DevOps: TF402455 Pushes to this branch are not permitted; you must use a pull request — remote: TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch. (Git)Azure DevOps: TF402…Gerrit: no new changes / commit already exists in change — remote: error: no new changes (Git)Gerrit: no new chan…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 historiesfatal: 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 ->…remote: error: refusing to delete the current branch — ! [remote rejected] main (deletion of the current branch prohibited) (Git)remote: error: refu…src 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 failedGH001 large files — remote: error: GH001: Large files detected. File x is 120 MB; this exceeds GitHub's file size limit of 100.00 MB (Git)GH001 large fileserror: Unpack failed / remote unpack failed: unable to create temporary object directory — remote: error: unable to create temporary object directory (Git)error: Unpack faile…hint: The 'pre-commit' hook was ignored because it's not set as executable — hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable. (Git)hint: The 'pre-comm…error: failed to push some refs: pre-push hook failed — error: failed to push some refs to 'github.com:org/repo.git' (pre-push hook returned non-zero) (Git)error: failed to pu…0x80070005 — Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied (Windows)0x80070005sudoers — user is not in the sudoers file. This incident will be reported. (Linux)sudoersprotected branch — remote: error: GH006: Protected branch update failed / pre-receive hook declined (Git)protected branchshallow update not allowed — ! [remote rejected] main -> main (shallow update not allowed) (Git)shallow update not …non-bare push — ! [remote rejected] main -> main (branch is currently checked out) (Git)non-bare pushno upstream branch — fatal: The current branch x has no upstream branch. (Git)no upstream branchFCM: Fetching FCM registration token failed — FirebaseMessaging: Fetching FCM registration token failed java.io.IOException: SERVICE_NOT_AVAILABLE (Android)FCM: Fetching FCM r…GH013: Push cannot contain secrets — remote: error: GH013: Repository rule violations found. - Push cannot contain secrets (Git)GH013: Push cannot …remote: fatal: pack exceeds maximum allowed size — remote: fatal: pack exceeds maximum allowed size (2.00 GiB) (Git)remote: fatal: pack…Resource protected by organization SAML enforcement — remote: Resource protected by organization SAML enforcement. You must grant your Personal Access token access to this organization. (Git)Resource protected …gh: HTTP 401: Bad credentials — gh: Bad credentials (HTTP 401) / error validating token: HTTP 401 (Git)gh: HTTP 401: Bad c…remote: HTTP Basic: Access denied (GitLab) — remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled (Git)remote: HTTP Basic:…No valid 'aps-environment' entitlement string found — Failed to register for remote notifications: no valid “aps-environment” entitlement string found for application (iOS)No valid 'aps-envir…APNs: BadDeviceToken (400) — {"reason":"BadDeviceToken"} HTTP/2 400 from api.push.apple.com (iOS)APNs: BadDeviceToke…APNs: InvalidProviderToken (403) — {"reason":"InvalidProviderToken"} HTTP/2 403 (iOS)APNs: InvalidProvid…This branch has conflicts that must be resolved (GitHub) — This branch has conflicts that must be resolved Use the web editor or the command line to resolve conflicts (Git)This branch has con…GH007: Your push would publish a private email address — remote: error: GH007: Your push would publish a private email address. You can make your email public or disable this protection by visiting: https://github.com/settings/emails (Git)GH007: Your push wo…GitHub: Sorry, this diff is taking too long to generate — Sorry, this diff is taking too long to generate. The diff is too large to display (Git)GitHub: Sorry, this…Gerrit: missing Change-Id in commit message — remote: ERROR: [a1b2c3d] missing Change-Id in message footer (Git)Gerrit: missing Cha…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…

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.

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

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.

GitLab: You are not allowed to push code to protected branchesGit

remote: GitLab: You are not allowed to push code to protected branches on this project.

GitLab's protected branch settings block your push.

Bitbucket: Branch permissions prevent pushGit

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

Bitbucket branch restrictions reject your direct push.

Azure DevOps: TF401019 / VS403 push rejectedGit

remote: TF401027: You need the GenericContribute permission to perform this action.

Azure DevOps denies the push for lack of permission.

ITMS-90078: Missing Push Notification EntitlementiOS

ITMS-90078: Missing Push Notification Entitlement - Your app appears to register with the Apple Push Notification service

The app uses push but lacks the aps-environment entitlement.

APNs: 410 Unregistered / DeviceTokenNotForTopiciOS

{"reason":"Unregistered","timestamp":1700000000}

The device token is no longer valid (app uninstalled or token rotated).

Notification Service Extension not modifying push contentiOS

(behavior) rich push image/mutable-content not working

The Notification Service Extension isn't being invoked.

Azure DevOps: TF402455 Pushes to this branch are not permitted; you must use a pull requestGit

remote: TF402455: Pushes to this branch are not permitted; you must use a pull request to update this branch.

Branch policies on Azure Repos block direct pushes.

Gerrit: no new changes / commit already exists in changeGit

remote: error: no new changes

Gerrit sees nothing new in the pushed commit.

Two steps away (35)

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.

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.

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.

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.

GH001 large filesGit

remote: error: GH001: Large files detected. File x is 120 MB; this exceeds GitHub's file size limit of 100.00 MB

GitHub rejected the push because a file over 100 MB is in your commits — even if you deleted it later.

error: Unpack failed / remote unpack failed: unable to create temporary object directoryGit

remote: error: unable to create temporary object directory

The server couldn't store the pushed objects.

hint: The 'pre-commit' hook was ignored because it's not set as executableGit

hint: The '.git/hooks/pre-commit' hook was ignored because it's not set as executable.

Git skipped your hook because it lacks exec permission.

error: failed to push some refs: pre-push hook failedGit

error: failed to push some refs to 'github.com:org/repo.git' (pre-push hook returned non-zero)

A local pre-push hook returned an error and blocked the push.

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.

protected branchGit

remote: error: GH006: Protected branch update failed / pre-receive hook declined

The server rejected your push because of branch protection rules or a server-side hook.

shallow update not allowedGit

! [remote rejected] main -> main (shallow update not allowed)

You pushed from a shallow clone to a remote that doesn’t accept shallow history.

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.

no upstream branchGit

fatal: The current branch x has no upstream branch.

The local branch isn’t linked to a remote branch yet, so a bare git push doesn’t know where to go.

FCM: Fetching FCM registration token failedAndroid

FirebaseMessaging: Fetching FCM registration token failed java.io.IOException: SERVICE_NOT_AVAILABLE

The device couldn't register with Firebase Cloud Messaging.

GH013: Push cannot contain secretsGit

remote: error: GH013: Repository rule violations found. - Push cannot contain secrets

GitHub blocked the push because a commit contains a detected secret.

remote: fatal: pack exceeds maximum allowed sizeGit

remote: fatal: pack exceeds maximum allowed size (2.00 GiB)

The pushed pack is larger than the server allows.

Resource protected by organization SAML enforcementGit

remote: Resource protected by organization SAML enforcement. You must grant your Personal Access token access to this organization.

Your token or SSH key isn't authorized for the org's SSO.

gh: HTTP 401: Bad credentialsGit

gh: Bad credentials (HTTP 401) / error validating token: HTTP 401

The GitHub CLI token is invalid or expired.

remote: HTTP Basic: Access denied (GitLab)Git

remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled

GitLab rejected your HTTPS login.

No valid 'aps-environment' entitlement string foundiOS

Failed to register for remote notifications: no valid “aps-environment” entitlement string found for application

The app is missing the Push Notifications capability in its signing.

APNs: BadDeviceToken (400)iOS

{"reason":"BadDeviceToken"} HTTP/2 400 from api.push.apple.com

APNs rejected the device token for the environment you used.

APNs: InvalidProviderToken (403)iOS

{"reason":"InvalidProviderToken"} HTTP/2 403

APNs rejected the JWT or key you used to authenticate.

This branch has conflicts that must be resolved (GitHub)Git

This branch has conflicts that must be resolved Use the web editor or the command line to resolve conflicts

GitHub can't merge the pull request automatically.

GH007: Your push would publish a private email addressGit

remote: error: GH007: Your push would publish a private email address. You can make your email public or disable this protection by visiting: https://github.com/settings/emails

GitHub blocks pushes whose commits use your private email.

GitHub: Sorry, this diff is taking too long to generateGit

Sorry, this diff is taking too long to generate. The diff is too large to display

GitHub can't render a very large pull request diff.

Gerrit: missing Change-Id in commit messageGit

remote: ERROR: [a1b2c3d] missing Change-Id in message footer

Gerrit requires a Change-Id footer on every commit.

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.