cz-cli icon indicating copy to clipboard operation
cz-cli copied to clipboard

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

Open michael-odonovan opened this issue 3 years ago • 13 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.

michael-odonovan avatar May 08 '22 10:05 michael-odonovan

Try use cz command

Zhengqbbb avatar Jun 26 '22 22:06 Zhengqbbb

Try use git cz instead. It works for me.

riancintiyo avatar Oct 05 '22 06:10 riancintiyo

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

pedronastasi avatar Oct 24 '22 16:10 pedronastasi

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

pedronastasi avatar Oct 24 '22 16:10 pedronastasi

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.

michael-odonovan avatar Oct 25 '22 09:10 michael-odonovan

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)

sepsky avatar Jun 08 '23 15:06 sepsky

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

grantwforsythe avatar Dec 22 '23 19:12 grantwforsythe