commitizen / commitizen/cz-cli

error: pathspec 'commit' did not match any file(s) known to git git exited with error code 1

Open
#933 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
17.5k
Forks
566
Avg merge
8h 16m
Merged PRs (30d)
1

Description

Installed in the normal way, as I have done previously. Now getting this error for some reason?:
```
error: pathspec 'commit' did not match any file(s) known to git
git exited with error code 1
```
From reading, it seems this is an error associated with typos in one line git commits, but cz seems to be working as before but throwing this error once I finish the questionaire.
Your help much appreciated.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the error after completing the commit questionnaire, then trace the command invocation that produces Git's pathspec message. The issue is resolved when the questionnaire completes without the error and the intended commit operation succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.