Error map

error: pathspec 'text' did not match any file(s) known to git (unquoted -m message) error: pathspec 'fix' did not match any file(s) known to git error: pathspec 'login' did not match any file(s) known to git

Git · layer 7, Build & delivery

Open the full error page →

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

error: pathspec 'text' did not match any file(s) known to git (unquoted -m message) — error: pathspec 'fix' did not match any file(s) known to git error: pathspec 'login' did not match any file(s) known to git (Git)error: path…pathspec did not match — error: pathspec 'x' did not match any file(s) known to git (Git)pathspec did not ma…cherry-pick: The previous cherry-pick is now empty — The previous cherry-pick is now empty, possibly due to conflict resolution. (Git)cherry-pick: The pr…error: There was a problem with the editor 'vi' — error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option. (Git)error: There was a …nothing to commit, working tree clean — On branch main nothing to commit, working tree clean (Git)nothing to commit, …no changes added to commit (use git add and/or git commit -a) — Changes not staged for commit: modified: app.js no changes added to commit (Git)no changes added to…fatal: your current branch 'main' does not have any commits yet — fatal: your current branch 'main' does not have any commits yet (Git)fatal: your current…fatal: object is a tree, not a commit — fatal: a1b2c3d is a tree, not a commit / error: object a1b2c3d is a tree, not a commit (Git)fatal: object is a …fatal: pathspec 'x' is beyond a symbolic link — fatal: pathspec 'link/file.txt' is beyond a symbolic link (Git)fatal: pathspec 'x'…fatal: cannot do a partial commit during a merge — fatal: cannot do a partial commit during a merge. (Git)fatal: cannot do a …fatal: no tag message? — fatal: no tag message? (Git)fatal: no tag messa…non-fast-forward — Git: ! [rejected] … (fetch first) — error: failed to push some refs (Git)non-fast-forwarddetached HEAD — You are in 'detached HEAD' state. (Git)detached HEADFilename too long — error: unable to create file x: Filename too long (Windows) (Git)Filename too longunfinished merge — fatal: You have not concluded your merge (MERGE_HEAD exists). Please, commit your changes before you merge. (Git)unfinished mergeCONFLICT 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…fatal: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists) — error: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists). Please, commit your changes before you merge. (Git)fatal: You have not…author identity unknown — Author identity unknown *** Please tell me who you are. (Git)author identity unk…Rebase stopped: CONFLICT (content), resolve then git rebase --continue — Resolve all conflicts manually, mark them as resolved with "git add/rm <conflicted_files>", then run "git rebase --continue". (Git)Rebase stopped: CON…fatal: bad config line 5 in file .git/config — fatal: bad config line 12 in file /home/user/.gitconfig (Git)fatal: bad config l…No local changes to save — No local changes to save (Git)No local changes to…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….gitignore not ignoring a file already tracked — (behavior) file still shows in git status after adding to .gitignore (Git).gitignore not igno…CONFLICT (add/add): Merge conflict in file added on both branches — CONFLICT (add/add): Merge conflict in config.yml (Git)CONFLICT (add/add):…error: open("file"): Permission denied / unable to index file — error: open("data/db.sqlite"): Permission denied error: unable to index file 'data/db.sqlite' fatal: adding files failed (Git)error: open("file")…unknown revision HEAD — fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. (Git)unknown revision HE…'self' captured by a closure before all members were initialized — error: 'self' captured by a closure before all members were initialized (iOS)'self' captured by …hint: Using 'master' as the name for the initial branch — hint: Using 'master' as the name for the initial branch. This default branch name is subject to change. (Git)hint: Using 'master…not a valid object name — fatal: Not a valid object name: 'main'. (Git)not a valid object …archive — /etc/letsencrypt/live/<domain>/privkey.pem symlink to archive unreadable (permissions after certbot upgrade) (SSL / TLS)archivewarning: 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…CONFLICT — Git: CONFLICT (content): Merge conflict in file — Automatic merge failed (Git)CONFLICTerror: The branch is not fully merged — 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)error: The branch i…git merge -X theirs vs ours (swapped during rebase) — (behavior) "ours" and "theirs" are reversed in git rebase (Git)git merge -X theirs…fatal: tag already exists — fatal: tag 'v1.0.0' already exists (Git)fatal: tag already …! [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] tag -> tag (would clobber existing tag) — ! [rejected] v1.0 -> v1.0 (would clobber existing tag) (Git)! [rejected] tag ->…

Directly related (10)

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.

cherry-pick: The previous cherry-pick is now emptyGit

The previous cherry-pick is now empty, possibly due to conflict resolution.

The commit you picked has no changes left, because the same changes already exist on your branch.

error: There was a problem with the editor 'vi'Git

error: There was a problem with the editor 'vi'. Please supply the message using either -m or -F option.

Git couldn't open your configured editor to collect a message or todo list.

nothing to commit, working tree cleanGit

On branch main nothing to commit, working tree clean

Git sees no changes to commit.

no changes added to commit (use git add and/or git commit -a)Git

Changes not staged for commit: modified: app.js no changes added to commit

Edits exist but none are staged.

fatal: your current branch 'main' does not have any commits yetGit

fatal: your current branch 'main' does not have any commits yet

Commands needing history ran in a brand-new repo.

fatal: object is a tree, not a commitGit

fatal: a1b2c3d is a tree, not a commit / error: object a1b2c3d is a tree, not a commit

A command wanted a commit but got a tree.

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.

fatal: cannot do a partial commit during a mergeGit

fatal: cannot do a partial commit during a merge.

You tried to commit selected files in the middle of a merge.

fatal: no tag message?Git

fatal: no tag message?

An annotated tag needs a message and the editor returned empty.

Two steps away (27)

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.

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.

Filename too longGit

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

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

unfinished mergeGit

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.

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.

fatal: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists)Git

error: You have not concluded your cherry-pick (CHERRY_PICK_HEAD exists). Please, commit your changes before you merge.

A previous cherry-pick is still open.

author identity unknownGit

Author identity unknown *** Please tell me who you are.

Git doesn’t know your name and email for commits.

Rebase stopped: CONFLICT (content), resolve then git rebase --continueGit

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.

fatal: bad config line 5 in file .git/configGit

fatal: bad config line 12 in file /home/user/.gitconfig

A Git config file has invalid syntax.

No local changes to saveGit

No local changes to save

`git stash` found nothing tracked to stash.

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.

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

CONFLICT (add/add): Merge conflict in file added on both branchesGit

CONFLICT (add/add): Merge conflict in config.yml

Both branches created the same file with different content.

error: open("file"): Permission denied / unable to index fileGit

error: open("data/db.sqlite"): Permission denied error: unable to index file 'data/db.sqlite' fatal: adding files failed

Git can't read a file to stage it.

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.

'self' captured by a closure before all members were initializediOS

error: 'self' captured by a closure before all members were initialized

A closure uses `self` before all stored properties are set.

hint: Using 'master' as the name for the initial branchGit

hint: Using 'master' as the name for the initial branch. This default branch name is subject to change.

A harmless hint: Git's default initial branch name is configurable.

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.

archiveSSL / TLS

/etc/letsencrypt/live/<domain>/privkey.pem symlink to archive unreadable (permissions after certbot upgrade)

The `live/` symlinks point into `archive/` with restrictive permissions, so non-root services can't read the key.

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.

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.

error: The branch is not fully mergedGit

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.

git merge -X theirs vs ours (swapped during rebase)Git

(behavior) "ours" and "theirs" are reversed in git rebase

During a rebase Git's "ours" is the branch you rebase onto, and "theirs" is your own commit.

fatal: tag already existsGit

fatal: tag 'v1.0.0' already exists

A tag with that name exists already.

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