Error map

non-bare push ! [remote rejected] main -> main (branch is currently checked out)

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.

non-bare push — ! [remote rejected] main -> main (branch is currently checked out) (Git)non-bare pu…denied — denied: requested access to the resource is denied (docker push) (Docker)deniedGH001 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 filesshallow update not allowed — ! [remote rejected] main -> main (shallow update not allowed) (Git)shallow update not …protected branch — remote: error: GH006: Protected branch update failed / pre-receive hook declined (Git)protected branchorigin not a repository — fatal: 'origin' does not appear to be a git repository (Git)origin not a reposi…non-fast-forward — Git: ! [rejected] … (fetch first) — error: failed to push some refs (Git)non-fast-forwardno upstream branch — fatal: The current branch x has no upstream branch. (Git)no upstream branchcouldn't find remote ref — fatal: couldn't find remote ref main (Git)couldn't find remot…cannot lock ref — error: cannot lock ref 'refs/remotes/origin/x': is at … but expected … / unable to update local ref (Git)cannot lock refremote origin exists — error: remote origin already exists. (Git)remote origin existsbroken ref — warning: ignoring broken ref refs/remotes/origin/HEAD (Git)broken refNotification Service Extension not modifying push content — (behavior) rich push image/mutable-content not working (iOS)Notification Servic…AADSTS700016 — Azure AD (Entra ID): AADSTS700016 Application not found in the directory (Azure)AADSTS700016401 — HTTP 401 Unauthorized (HTTP)401TokenExpiredError — JWT Expired / Invalid Token (Authentication)TokenExpiredErrorsrc 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 failedLFS smudge error — Error downloading object: x: Smudge error / This repository is over its data quota (Git)LFS smudge errorgithub-actions[bot] 403 — remote: Permission to owner/repo.git denied to github-actions[bot]. fatal: unable to access … The requested URL returned error: 403 (Git)github-actions[bot]…No updates are to be performed — CloudFormation: No updates are to be performed (AWS)No updates are to b…the input device is not a TTY — the input device is not a TTY (Docker)the input device is…FCM: Fetching FCM registration token failed — FirebaseMessaging: Fetching FCM registration token failed java.io.IOException: SERVICE_NOT_AVAILABLE (Android)FCM: Fetching FCM r…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…Repository not found — remote: Repository not found. fatal: repository 'https://github.com/x/y.git/' not found (Git)Repository not foundfatal: 'origin' does not appear / No such remote 'origin' — error: No such remote 'origin' (Git)fatal: 'origin' doe…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 historiesdetached HEAD — You are in 'detached HEAD' state. (Git)detached HEADpathspec did not match — error: pathspec 'x' did not match any file(s) known to git (Git)pathspec did not ma…overwritten by checkout — error: Your local changes to the following files would be overwritten by checkout (Git)overwritten by chec…branch exists — fatal: a branch named 'x' already exists (Git)branch existsnot a valid object name — fatal: Not a valid object name: 'main'. (Git)not a valid object …fatal: invalid reference: branch — fatal: invalid reference: feature/login (Git)fatal: invalid refe…untracked files overwritten — error: The following untracked working tree files would be overwritten by checkout/merge (Git)untracked files ove…submodule url — fatal: No url found for submodule path 'x' in .gitmodules (Git)submodule urlunknown revision HEAD — fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. (Git)unknown revision HE…fatal: destination path already exists and is not an empty directory — fatal: destination path 'repo' already exists and is not an empty directory. (Git)fatal: destination …refs on function components — Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? (React)refs on function co…error: unable to resolve reference 'refs/heads/main': reference broken — fatal: bad object refs/heads/main (Git)error: unable to re…! [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…GH013: Push cannot contain secrets — remote: error: GH013: Repository rule violations found. - Push cannot contain secrets (Git)GH013: Push cannot …

Directly related (12)

deniedDocker

denied: requested access to the resource is denied (docker push)

You’re logged in, but not allowed to push to that repository — usually the image isn’t tagged with your own username/organisation.

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.

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.

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.

origin not a repositoryGit

fatal: 'origin' does not appear to be a git repository

No remote named origin is configured (or it points nowhere valid).

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.

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.

couldn't find remote refGit

fatal: couldn't find remote ref main

The branch you tried to pull/fetch doesn’t exist on the remote.

cannot lock refGit

error: cannot lock ref 'refs/remotes/origin/x': is at … but expected … / unable to update local ref

Git couldn’t update a reference — stale remote-tracking refs, case-only branch name clashes, or a leftover lock file.

remote origin existsGit

error: remote origin already exists.

A remote named origin is already configured.

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.

Notification Service Extension not modifying push contentiOS

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

The Notification Service Extension isn't being invoked.

Two steps away (32)

AADSTS700016Azure

Azure AD (Entra ID): AADSTS700016 Application not found in the directory

The client ID in your sign-in request doesn’t exist in the tenant you’re authenticating against.

401HTTP

HTTP 401 Unauthorized

The request has no valid authentication credentials — you need to log in or send a valid token.

TokenExpiredErrorAuthentication

JWT Expired / Invalid Token

The JSON Web Token sent with the request is expired, malformed or signed with a different key, so the API rejects it (usually wit…

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.

LFS smudge errorGit

Error downloading object: x: Smudge error / This repository is over its data quota

Git LFS couldn’t download a large file — missing LFS install, auth problems, or the LFS bandwidth/storage quota is exhausted.

github-actions[bot] 403Git

remote: Permission to owner/repo.git denied to github-actions[bot]. fatal: unable to access … The requested URL returned error: 403

A GitHub Actions workflow tried to push but the GITHUB_TOKEN doesn’t have write permission.

No updates are to be performedAWS

CloudFormation: No updates are to be performed

You ran an update/deploy with a template and parameters identical to what’s deployed, so there’s nothing to change.

the input device is not a TTYDocker

the input device is not a TTY

docker run/exec was called with -t (allocate a terminal) in a context with no terminal — CI, cron, a pipe or a script.

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.

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.

Repository not foundGit

remote: Repository not found. fatal: repository 'https://github.com/x/y.git/' not found

GitHub/GitLab says the repository doesn’t exist — or you lack access to a private repo.

fatal: 'origin' does not appear / No such remote 'origin'Git

error: No such remote 'origin'

The repository has no remote named origin.

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.

detached HEADGit

You are in 'detached HEAD' state.

HEAD points at a commit instead of a branch, so new commits won’t belong to any branch.

pathspec did not matchGit

error: pathspec 'x' did not match any file(s) known to git

Git couldn’t find the file or branch name you referenced.

overwritten by checkoutGit

error: Your local changes to the following files would be overwritten by checkout

Switching branches would discard uncommitted changes in files that differ between branches.

branch existsGit

fatal: a branch named 'x' already exists

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

not a valid object nameGit

fatal: Not a valid object name: 'main'.

The branch or commit doesn’t exist yet — typically in a new repo before the first commit.

fatal: invalid reference: branchGit

fatal: invalid reference: feature/login

Git can't find a branch or commit with that name.

untracked files overwrittenGit

error: The following untracked working tree files would be overwritten by checkout/merge

Untracked local files have the same paths as files coming from the other branch.

submodule urlGit

fatal: No url found for submodule path 'x' in .gitmodules

A submodule entry exists in the index but its URL is missing from .gitmodules.

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: destination path already exists and is not an empty directoryGit

fatal: destination path 'repo' already exists and is not an empty directory.

The target folder exists and has files.

refs on function componentsReact

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

A ref was passed to a function component that doesn’t forward it.

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.

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

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.