【问题标题】:error: pathspec 'commit' did not match any file(s) known to git when using commitizen错误:使用 commitizen 时 pathspec \'commit\' 与 git 已知的任何文件都不匹配
【发布时间】:2022-10-05 14:45:41
【问题描述】:

现在我想使用commitizen在linuxUbuntu 20.04.4 LTS 中提交git repo,首先安装commitizen(Node v16.14.2):

npm install -g commitizen

当我像这样使用 commitizen 提交代码时:

cz commit

显示如下错误:

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

为什么会这样?我应该怎么做才能解决这个问题?

【问题讨论】:

    标签: git commitizen


    【解决方案1】:

    尝试使用git cz 而不是cz ccz commit。这个对我有用。

    【讨论】:

      猜你喜欢
      • 2013-06-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-04
      • 1970-01-01
      • 2022-10-12
      • 1970-01-01
      • 2015-08-28
      • 1970-01-01
      相关资源
      最近更新 更多