Error map
error: the following file has local modifications (git rm) error: the following file has local modifications: app.js (use --cached to keep the file, or -f to force removal)
Git · layer 7, Build & delivery
Centre: this error. First ring: errors it is linked with (7). 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 (7)
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.
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.
error: Your local changes to the following files would be overwritten by merge
git pull/merge would modify files you’ve changed but not committed.
fatal: not removing 'build' recursively without -r
`git rm` needs `-r` to remove directories.
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.
(behavior) file still shows in git status after adding to .gitignore
Git keeps tracking files that were committed before you ignored them.
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.
Two steps away (21)
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.
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.
HTTP 401 Unauthorized
The request has no valid authentication credentials — you need to log in or send a valid token.
You are in 'detached HEAD' state.
HEAD points at a commit instead of a branch, so new commits won’t belong to any branch.
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.
fatal: Not possible to fast-forward, aborting.
pull is configured to fast-forward only, but your branch and the remote have diverged.
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.
error: cannot pull with rebase: You have unstaged changes. Please commit or stash them.
A rebase (or pull --rebase) needs a clean working tree.
fatal: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you merge.
A merge is still in progress — conflicts were resolved (or not) but not committed.
fatal: destination path 'repo' already exists and is not an empty directory.
The target folder exists and has files.
error: Entry 'x' is a directory in one branch and a file in another
The index has conflicting entries for one path.
fatal: Unable to read current working directory: No such file or directory
The folder you were in was deleted or moved.
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 start" / We are not bisecting.
A bisect command was used before starting or after finishing.
! [rejected] v1.0 -> v1.0 (would clobber existing tag)
A fetched tag would replace one you already have with a different target.
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.
remote: TF401027: You need the GenericContribute permission to perform this action.
Azure DevOps denies the push for lack of permission.
On branch main nothing to commit, working tree clean
Git sees no changes to commit.
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.
modified: lib (modified content, untracked content)
The superproject sees changes inside a submodule.
fatal: No submodule mapping found in .gitmodules for path 'lib'
The repo tracks a submodule commit but .gitmodules lacks its entry.