Error map

fatal: No submodule mapping found in .gitmodules for path fatal: No submodule mapping found in .gitmodules for path 'lib'

Git · layer 7, Build & delivery

Open the full error page →

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

fatal: No submodule mapping found in .gitmodules for path — fatal: No submodule mapping found in .gitmodules for path 'lib' (Git)fatal: No s…unknown revision HEAD — fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. (Git)unknown revision HE…submodule url — fatal: No url found for submodule path 'x' in .gitmodules (Git)submodule urlgit subtree add: prefix already exists — fatal: prefix 'vendor/lib' already exists. (Git)git subtree add: pr…GitLab CI: fatal: couldn't find remote ref / Cleaning repository — fatal: could not read Username for 'https://gitlab.example.com': No such device or address (Git)GitLab CI: fatal: c…The 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…fatal: clone of 'url' into submodule path failed — fatal: clone of 'git@github.com:org/lib.git' into submodule path '/repo/lib' failed Failed to clone 'lib'. Retry scheduled (Git)fatal: clone of 'ur…Submodule shows modified content / dirty submodule — modified: lib (modified content, untracked content) (Git)Submodule shows mod…warning: adding embedded git repository — warning: adding embedded git repository: vendor/lib hint: You've added another git repository inside your current repository. (Git)warning: adding emb…Applying: patch failed. When you have resolved this problem, run git am --continue — Patch failed at 0001 Fix bug. hint: Use 'git am --show-current-patch' to see the failed patch (Git)Applying: patch fai…fatal: remote error: upload-pack: not our ref a1b2c3d (submodule) — fatal: Fetched in submodule path 'lib', but it did not contain a1b2c3d. Direct fetching of that commit failed. (Git)fatal: remote error…fatal: transport 'file' not allowed — fatal: transport 'file' not allowed fatal: clone of '/path/lib' into submodule path failed (Git)fatal: transport 'f…detached HEAD — You are in 'detached HEAD' state. (Git)detached HEADuntracked files overwritten — error: The following untracked working tree files would be overwritten by checkout/merge (Git)untracked files ove…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 refCould not resolve host — fatal: unable to access 'https://github.com/…': Could not resolve host: github.com (Git)Could not resolve h…cannot rebase — error: cannot pull with rebase: You have unstaged changes. Please commit or stash them. (Git)cannot rebaseAzure DevOps: TF401019 / VS403 push rejected — remote: TF401027: You need the GenericContribute permission to perform this action. (Git)Azure DevOps: TF401…github-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]…Git doesn't detect file rename that only changes case — (behavior) git status shows nothing after renaming File.js to file.js (Git)Git doesn't detect …fatal: No names found, cannot describe anything / No tags can describe — fatal: No names found, cannot describe anything. (Git)fatal: No names fou…pathspec did not match — error: pathspec 'x' did not match any file(s) known to git (Git)pathspec did not ma…You need to start by git bisect start — You need to start by "git bisect start" / We are not bisecting. (Git)You need to start b….gitignore not ignoring a file already tracked — (behavior) file still shows in git status after adding to .gitignore (Git).gitignore not igno…publickey — Git: Permission denied (publickey). fatal: Could not read from remote repository. (Git)publickeyfatal: 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 …fatal: --unshallow on a complete repository does not make sense — fatal: --unshallow on a complete repository does not make sense (Git)fatal: --unshallow …LFS file contains pointer text (version https://git-lfs.github.com/spec/v1) — version https://git-lfs.github.com/spec/v1 oid sha256:abc size 123456 (Git)LFS file contains p…fatal: pathspec 'x' is beyond a symbolic link — fatal: pathspec 'link/file.txt' is beyond a symbolic link (Git)fatal: pathspec 'x'…CONFLICT during cherry-pick — error: could not apply a1b2c3d... Fix login bug / hint: After resolving the conflicts, mark them with git add/rm, then run git cherry-pick --continue (Git)CONFLICT during che…! [rejected] tag -> tag (would clobber existing tag) — ! [rejected] v1.0 -> v1.0 (would clobber existing tag) (Git)! [rejected] tag ->…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…Bitbucket: Branch permissions prevent push — remote: Branch permissions: You are not allowed to push to branch main (Git)Bitbucket: Branch p…Updates were rejected after git commit --amend (rewrote pushed commit) — ! [rejected] main -> main (non-fast-forward) after amend (Git)Updates were reject…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…REMOTE HOST IDENTIFICATION HAS CHANGED — WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! (ssh host key changed) (Linux)REMOTE HOST IDENTIF…NO_PUBKEY — The following signatures couldn't be verified because the public key is not available: NO_PUBKEY (Linux)NO_PUBKEYavc: denied — SELinux is preventing ... / avc: denied { read } for pid=... (permission denied despite correct permissions) (Linux)avc: denied

Directly related (11)

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.

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.

git subtree add: prefix already existsGit

fatal: prefix 'vendor/lib' already exists.

`git subtree add` refuses an existing folder.

GitLab CI: fatal: couldn't find remote ref / Cleaning repositoryGit

fatal: could not read Username for 'https://gitlab.example.com': No such device or address

GitLab CI can't fetch the repo or a dependency inside the job.

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.

fatal: clone of 'url' into submodule path failedGit

fatal: clone of 'git@github.com:org/lib.git' into submodule path '/repo/lib' failed Failed to clone 'lib'. Retry scheduled

Git couldn't clone a submodule on update.

Submodule shows modified content / dirty submoduleGit

modified: lib (modified content, untracked content)

The superproject sees changes inside a submodule.

warning: adding embedded git repositoryGit

warning: adding embedded git repository: vendor/lib hint: You've added another git repository inside your current repository.

You added a folder that has its own .git.

Applying: patch failed. When you have resolved this problem, run git am --continueGit

Patch failed at 0001 Fix bug. hint: Use 'git am --show-current-patch' to see the failed patch

`git am` stopped on a patch that doesn't apply.

fatal: remote error: upload-pack: not our ref a1b2c3d (submodule)Git

fatal: Fetched in submodule path 'lib', but it did not contain a1b2c3d. Direct fetching of that commit failed.

The parent repo points to a submodule commit that was never pushed.

fatal: transport 'file' not allowedGit

fatal: transport 'file' not allowed fatal: clone of '/path/lib' into submodule path failed

Git blocks local file-path submodules since a security fix.

Two steps away (27)

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.

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.

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.

Could not resolve hostGit

fatal: unable to access 'https://github.com/…': Could not resolve host: github.com

DNS lookup for the Git host failed from this machine.

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.

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.

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.

Git doesn't detect file rename that only changes caseGit

(behavior) git status shows nothing after renaming File.js to file.js

On case-insensitive file systems Git doesn't notice a case-only rename.

fatal: No names found, cannot describe anything / No tags can describeGit

fatal: No names found, cannot describe anything.

`git describe` can't find a tag in the available history.

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.

You need to start by git bisect startGit

You need to start by "git bisect start" / We are not bisecting.

A bisect command was used before starting or after finishing.

.gitignore not ignoring a file already trackedGit

(behavior) file still shows in git status after adding to .gitignore

Git keeps tracking files that were committed before you ignored them.

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.

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.

fatal: --unshallow on a complete repository does not make senseGit

fatal: --unshallow on a complete repository does not make sense

You asked to deepen a repo that is already complete.

LFS file contains pointer text (version https://git-lfs.github.com/spec/v1)Git

version https://git-lfs.github.com/spec/v1 oid sha256:abc size 123456

A file shows LFS pointer text instead of the real content.

fatal: pathspec 'x' is beyond a symbolic linkGit

fatal: pathspec 'link/file.txt' is beyond a symbolic link

You tried to add a path through a symlink.

CONFLICT during cherry-pickGit

error: could not apply a1b2c3d... Fix login bug / hint: After resolving the conflicts, mark them with git add/rm, then run git cherry-pick --continue

The picked commit touches lines that differ on your branch.

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

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.

Bitbucket: Branch permissions prevent pushGit

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

Bitbucket branch restrictions reject your direct 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.

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.

REMOTE HOST IDENTIFICATION HAS CHANGEDLinux

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! (ssh host key changed)

The server’s SSH host key differs from the one saved in ~/.ssh/known_hosts — usually because the server was rebuilt or the IP was…

NO_PUBKEYLinux

The following signatures couldn't be verified because the public key is not available: NO_PUBKEY

apt can’t verify a repository’s signature because the repo’s signing key isn’t installed (or has expired/rotated).

avc: deniedLinux

SELinux is preventing ... / avc: denied { read } for pid=... (permission denied despite correct permissions)

SELinux blocked the access — file permissions look fine, but the file’s security context or a boolean doesn’t allow the service t…