cz-cli: Ability to re-run a commit if it fails

Sometimes, when a pre_commit hook is configured, our commit will fail. It would be helpful to have a way to pass something like --retry so we won’t need to enter the message again.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 18 (18 by maintainers)

Commits related to this issue

Most upvoted comments

One thing to note. If using from a npm script defined on package.json. The syntax required double --, as npm requires -- for passing args to npm run and the --retry being the argument itself:

npm run commit -- --retry

commit only being an alias to git-cz on node-modules/bin

  "scripts": {
      "commit": "git-cz",
  },