Error map

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

Git · layer 7, Build & delivery

Open the full error page →

Centre: this error. First ring: errors it is linked with (9). 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.

not a valid object name — fatal: Not a valid object name: 'main'. (Git)not a valid…merge commit revert — error: commit x is a merge but no -m option was given. (Git)merge commit revertnon-fast-forward — Git: ! [rejected] … (fetch first) — error: failed to push some refs (Git)non-fast-forwardpathspec did not match — error: pathspec 'x' did not match any file(s) known to git (Git)pathspec did not ma…no upstream branch — fatal: The current branch x has no upstream branch. (Git)no upstream branchbranch exists — fatal: a branch named 'x' already exists (Git)branch existsdetached HEAD — You are in 'detached HEAD' state. (Git)detached HEADsrc refspec — error: src refspec main does not match any (Git)src refspecunknown revision HEAD — fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. (Git)unknown revision HE…couldn't find remote ref — fatal: couldn't find remote ref main (Git)couldn't find remot…Authentication failed — fatal: Authentication failed for 'https://github.com/x/y.git/' (Git)Authentication fail…cannot lock ref — error: cannot lock ref 'refs/remotes/origin/x': is at … but expected … / unable to update local ref (Git)cannot lock refcannot rebase — error: cannot pull with rebase: You have unstaged changes. Please commit or stash them. (Git)cannot rebaseCONFLICT — 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 historiesFilename too long — error: unable to create file x: Filename too long (Windows) (Git)Filename too longENOENT — npm ERR! enoent ENOENT: no such file or directory, open '/path/package.json' (npm)ENOENTRPC 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 filesprotected branch — remote: error: GH006: Protected branch update failed / pre-receive hook declined (Git)protected branchuntracked files overwritten — error: The following untracked working tree files would be overwritten by checkout/merge (Git)untracked files ove…not possible to fast-forward — fatal: Not possible to fast-forward, aborting. (Git)not possible to fas…index.lock exists — fatal: Unable to create '.git/index.lock': File exists. Another git process seems to be running in this repository (Git)index.lock existsoverwritten by checkout — error: Your local changes to the following files would be overwritten by checkout (Git)overwritten by chec…denied — denied: requested access to the resource is denied (docker push) (Docker)deniedrebase 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 progresssubmodule url — fatal: No url found for submodule path 'x' in .gitmodules (Git)submodule urlLFS smudge error — Error downloading object: x: Smudge error / This repository is over its data quota (Git)LFS smudge errorremote origin exists — error: remote origin already exists. (Git)remote origin existsRepository not found — remote: Repository not found. fatal: repository 'https://github.com/x/y.git/' not found (Git)Repository not foundnon-bare push — ! [remote rejected] main -> main (branch is currently checked out) (Git)non-bare push

Directly related (9)

Two steps away (22)

Authentication failedGit

fatal: Authentication failed for 'https://github.com/x/y.git/'

HTTPS authentication to the Git host failed — wrong or expired credentials, or a password used where a token is required.

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.

cannot rebaseGit

error: cannot pull with rebase: You have unstaged changes. Please commit or stash them.

A rebase (or pull --rebase) needs a clean working tree.

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.

Filename too longGit

error: unable to create file x: Filename too long (Windows)

Windows’ 260-character path limit blocked Git from creating a file.

ENOENTnpm

npm ERR! enoent ENOENT: no such file or directory, open '/path/package.json'

npm ran in a directory without a package.json.

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.

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.

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.

not possible to fast-forwardGit

fatal: Not possible to fast-forward, aborting.

pull is configured to fast-forward only, but your branch and the remote have diverged.

index.lock existsGit

fatal: Unable to create '.git/index.lock': File exists. Another git process seems to be running in this repository

A lock file from another (or crashed) Git process blocks this command.

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.

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.

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

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.

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.

remote origin existsGit

error: remote origin already exists.

A remote named origin is already configured.

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.

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.