Error map
fatal: destination exists fatal: destination exists, source=a.txt, destination=b.txt
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)
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.
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) git status shows nothing after renaming File.js to file.js
On case-insensitive file systems Git doesn't notice a case-only rename.
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: Branch rename failed
Git couldn't rename the branch.
remote: This repository moved. Please use the new location: https://github.com/new-org/repo.git
The repository was renamed or transferred.
CONFLICT (rename/rename): Rename a.txt->b.txt in HEAD and a.txt->c.txt in feature
Both branches renamed the same file differently.
Two steps away (21)
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: 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.
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.
error: pathspec 'x' did not match any file(s) known to git
Git couldn’t find the file or branch name you referenced.
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.
You need to start by "git bisect start" / We are not bisecting.
A bisect command was used before starting or after finishing.
error: unable to create file x: Filename too long (Windows)
Windows’ 260-character path limit blocked Git from creating a file.
! [remote rejected] main -> main (shallow update not allowed)
You pushed from a shallow clone to a remote that doesn’t accept shallow history.
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.
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.
(behavior) file still shows in git status after adding to .gitignore
Git keeps tracking files that were committed before you ignored them.
! [rejected] v1.0 -> v1.0 (would clobber existing tag)
A fetched tag would replace one you already have with a different target.
fatal: a branch named 'x' already exists
You tried to create a branch whose name is already taken locally.
error: The branch 'feature/x' is not fully merged. If you are sure you want to delete it, run 'git branch -D feature/x'.
Git refuses to delete a branch whose commits aren't merged elsewhere.
error: Cannot delete branch 'main' checked out at '/home/user/repo'
You can't delete a branch that is checked out in this or another worktree.
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.
fatal: bad revision 'origin/dev..HEAD'
Git doesn't know one side of the revision range.
! [remote rejected] main (deletion of the current branch prohibited)
The server won't delete its default branch.
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.
Resolve all conflicts manually, mark them as resolved with "git add/rm <conflicted_files>", then run "git rebase --continue".
A commit being replayed conflicts with the new base.
The stash entry is kept in case you need it again.
Applying your stash conflicted with the working tree.