commitizen / commitizen/cz-cli

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

オープン
#977 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
17.5k
フォーク
566
平均マージ
8時間 16分
マージ済み PR(30日)
1

説明

```
import { bootstrap } from "commitizen/dist/cli/git-cz"
import path from "path"

export const runCommitCZ = () => {
const cliPath = path.join(__dirname, "../../../../node_modules/commitizen")
console.log(cliPath, "czpath")

// eslint-disable-next-line @typescript-eslint/no-unsafe-call
bootstrap({
cliPath,
config: {
path: "cz-conventional-changelog"
}
})
}
```
```
const program = new Command()
export const git = program
.command("git")
.description("use git add git commit git push ")
.action(arg => {
runCommitCZ()
})
```
erro pathspec 'git' did not match any file(s) known to git
git exited with error code 1
at ChildProcess. (D:\bBoyCli\node_modules\commitizen\dist\git\commit.js:810:28)

How can I modify and fix this problem, thanks for help

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。