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
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)
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] main -> main (non-fast-forward) after amend
Amending a pushed commit rewrites history, so the remote refuses the push.
remote: Branch permissions: You are not allowed to push to branch main
Bitbucket branch restrictions reject your direct push.
remote: TF401027: You need the GenericContribute permission to perform this action.
Azure DevOps denies the push for lack of permission.
remote: error: no new changes
Gerrit sees nothing new in the pushed commit.
- 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.
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 Entitlement - Your app appears to register with the Apple Push Notification service
The app uses push but lacks the aps-environment entitlement.
OSStatus -34018: A required entitlement isn't present
The keychain call needs an entitlement the app lacks.
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.
husky - pre-commit hook exited with code 1 (error)
A pre-commit hook returned a failure so the commit was stopped.
✖ 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)
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.
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.
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.
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.
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…
user is not in the sudoers file. This incident will be reported.
Your account isn’t allowed to use sudo.
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.
! [remote rejected] main -> main (shallow update not allowed)
You pushed from a shallow clone to a remote that doesn’t accept shallow history.
! [remote rejected] main -> main (branch is currently checked out)
You pushed to a non-bare repository whose working tree has that branch checked out.
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.0 -> v1.0.0 (already exists) error: failed to push some refs
The remote already has that tag pointing elsewhere.
! [rejected] main -> main (stale info)
`--force-with-lease` refused because the remote changed since your last fetch.
remote: error: unable to create temporary object directory
The server couldn't store the pushed objects.
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…
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.
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 '.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 size (2.00 GiB)
The pushed pack is larger than the server allows.
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.
FirebaseMessaging: Fetching FCM registration token failed java.io.IOException: SERVICE_NOT_AVAILABLE
The device couldn't register with Firebase Cloud Messaging.
remote: error: GH013: Repository rule violations found. - Push cannot contain secrets
GitHub blocked the push because a commit contains a detected secret.
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.
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: 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.
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 Use the web editor or the command line to resolve conflicts
GitHub can't merge the pull request automatically.
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.
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.
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 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 found on your path.
The repo uses LFS hooks but the git-lfs binary isn't installed.
Author identity unknown *** Please tell me who you are.
Git doesn’t know your name and email for commits.
remote: ERROR: [a1b2c3d] missing Change-Id in message footer
Gerrit requires a Change-Id footer on every commit.
.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.