commitizen / cz-cli

The commitizen command line utility. #BlackLivesMatter

Home Page:http://commitizen.github.io/cz-cli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

michael-odonovan opened this issue · comments

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.

Try use cz command

Try use git cz instead. It works for me.

I was also getting this issue . I'm using Yarn 3. git cz helped me

how about you? @michael-odonovan . Are you using Yarn 3?

Sorry guys I decided not to use this anymore. I had a new job and didn't really need another thing in my workflow to troubleshoot. Having said that, I do think it is a brilliant little program.

commented

Hi I'm having the same issue, but I'm using zsh. I read commitizen doesn't really work with zsh, is that correct still? Thanks :)
I followed the doc, and get the error when I run cz init (or git cz init)

I am running into the same issue using oh-my-zsh. Neither cz init or git cz init work for me