Error map

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 · 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: 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: fail…non-fast-forward — Git: ! [rejected] … (fetch first) — error: failed to push some refs (Git)non-fast-forwardUpdates were rejected after git commit --amend (rewrote pushed commit) — ! [rejected] main -> main (non-fast-forward) after amend (Git)Updates were reject…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…Gerrit: no new changes / commit already exists in change — remote: error: no new changes (Git)Gerrit: no new chan…pre-commit: files were modified by this hook — - hook id: end-of-file-fixer - exit code: 1 - files were modified by this hook (Git)pre-commit: files w…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…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…Keychain: errSecMissingEntitlement (-34018) — OSStatus -34018: A required entitlement isn't present (iOS)Keychain: errSecMis…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…pre-commit hook failed / husky - pre-commit hook exited with code 1 — husky - pre-commit hook exited with code 1 (error) (Git)pre-commit hook fai…commitlint: subject may not be empty / type must be one of — ✖ subject may not be empty [subject-empty] ✖ type may not be empty [type-empty] (Git)commitlint: subject…CONFLICT — 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 historiessrc 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 files0x80070005 — 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 branch! [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 -…! [rejected] (stale info) force-with-lease — ! [rejected] main -> main (stale info) (Git)! [rejected] (stale…error: Unpack failed / remote unpack failed: unable to create temporary object directory — remote: error: unable to create temporary object directory (Git)error: Unpack faile…EOF occurred in violation of protocol — Python: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396) (SSL / TLS)EOF occurred in vio…HTTPSConnectionPool: Max retries exceeded (SSLError) — Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...'))) (SSL / TLS)HTTPSConnectionPool…macOS — Python on macOS: SSL: CERTIFICATE_VERIFY_FAILED unable to get local issuer certificate (run Install Certificates.command) (SSL / TLS)macOShint: 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…remote: fatal: pack exceeds maximum allowed size — remote: fatal: pack exceeds maximum allowed size (2.00 GiB) (Git)remote: fatal: pack…error: unable to unlink old 'file' (Permission denied) — error: unable to unlink old 'node_modules/.bin/x': Invalid argument (Git)error: unable to un…FCM: 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 …Provisioning profile doesn't match entitlements — error: Provisioning profile "X" doesn't include the com.apple.developer.associated-domains entitlement. (iOS)Provisioning profil…Bad configuration option: usekeychain — ssh: /Users/me/.ssh/config: line 5: Bad configuration option: usekeychain (macOS)Bad configuration o…git: 'credential-osxkeychain' is not a git command — Git: git: 'credential-osxkeychain' is not a git command. See 'git --help' (macOS)git: 'credential-os…The specified item could not be found in the keychain (-25300) — macOS: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain. (errSecItemNotFound -25300) (macOS)The specified item …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…deploy hook — Certbot renewed the certificate but the server still serves the old one (deploy hook / reload failed) (SSL / TLS)deploy hookThe 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…This repository is configured for Git LFS but 'git-lfs' was not found — This repository is configured for Git LFS but 'git-lfs' was not found on your path. (Git)This repository is …author identity unknown — Author identity unknown *** Please tell me who you are. (Git)author identity unk…Gerrit: missing Change-Id in commit message — remote: ERROR: [a1b2c3d] missing Change-Id in message footer (Git)Gerrit: missing Cha…husky: command not found / .husky/pre-commit: line 4: npx: command not found — .husky/pre-commit: line 4: npx: command not found (Git)husky: command not …

Directly related (12)

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.

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.

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.

Gerrit: no new changes / commit already exists in changeGit

remote: error: no new changes

Gerrit sees nothing new in the pushed commit.

pre-commit: files were modified by this hookGit

- hook id: end-of-file-fixer - exit code: 1 - files were modified by this hook

A pre-commit hook auto-fixed files and aborted the commit.

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.

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.

Keychain: errSecMissingEntitlement (-34018)iOS

OSStatus -34018: A required entitlement isn't present

The keychain call needs an entitlement the app lacks.

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.

pre-commit hook failed / husky - pre-commit hook exited with code 1Git

husky - pre-commit hook exited with code 1 (error)

A pre-commit hook returned a failure so the commit was stopped.

commitlint: subject may not be empty / type must be one ofGit

✖ subject may not be empty [subject-empty] ✖ type may not be empty [type-empty]

A commit-msg hook (commitlint) rejected your message format.

Two steps away (36)

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.

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.

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.

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

! [rejected] (stale info) force-with-leaseGit

! [rejected] main -> main (stale info)

`--force-with-lease` refused because the remote changed since your last fetch.

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.

EOF occurred in violation of protocolSSL / TLS

Python: ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2396)

The server closed the TLS connection abruptly without a proper shutdown, usually because it rejected the handshake or dropped the…

HTTPSConnectionPool: Max retries exceeded (SSLError)SSL / TLS

Python requests: HTTPSConnectionPool(host='api.example.com', port=443): Max retries exceeded with url: /v1 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] ...')))

The `requests` call failed during the TLS step and exhausted its retries; the real reason is in the nested SSLError text.

macOSSSL / TLS

Python on macOS: SSL: CERTIFICATE_VERIFY_FAILED unable to get local issuer certificate (run Install Certificates.command)

The python.org installer doesn't use the system keychain, so HTTPS requests fail until you install its CA bundle.

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.

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.

error: unable to unlink old 'file' (Permission denied)Git

error: unable to unlink old 'node_modules/.bin/x': Invalid argument

Git can't delete or replace a file on Windows because it's locked.

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.

Provisioning profile doesn't match entitlementsiOS

error: Provisioning profile "X" doesn't include the com.apple.developer.associated-domains entitlement.

The app requests a capability that the profile doesn't allow.

Bad configuration option: usekeychainmacOS

ssh: /Users/me/.ssh/config: line 5: Bad configuration option: usekeychain

The `UseKeychain` option in `~/.ssh/config` is only understood by Apple's OpenSSH, not by a Homebrew/other OpenSSH.

git: 'credential-osxkeychain' is not a git commandmacOS

Git: git: 'credential-osxkeychain' is not a git command. See 'git --help'

Git is configured to use the macOS keychain helper, but the helper binary isn't found by the Git you're running.

The specified item could not be found in the keychain (-25300)macOS

macOS: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain. (errSecItemNotFound -25300)

A lookup in the macOS keychain found no matching item, or access to it was denied.

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.

deploy hookSSL / TLS

Certbot renewed the certificate but the server still serves the old one (deploy hook / reload failed)

Renewal succeeded on disk, but nginx/Apache wasn't reloaded, so clients keep seeing the expiring certificate.

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.

This repository is configured for Git LFS but 'git-lfs' was not foundGit

This repository is configured for Git LFS but 'git-lfs' was not found on your path.

The repo uses LFS hooks but the git-lfs binary isn't installed.

author identity unknownGit

Author identity unknown *** Please tell me who you are.

Git doesn’t know your name and email for commits.

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.

husky: command not found / .husky/pre-commit: line 4: npx: command not foundGit

.husky/pre-commit: line 4: npx: command not found

A Git hook can't find Node tools because the GUI/IDE has a different PATH.