commitizen / commitizen/cz-cli

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

Aperta
#977 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
17.5k
Fork
566
Merge medio
8h 16m
PR unite (30g)
1

Descrizione

```
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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.