Commitizen

commitizen

Organized, detailed commits to git.

commitizen prompts to fill out any required commit fields at commit time. No more waiting until later for a git commit hook to run and reject your commit or reading the contribution.md for the commit format!

Get it: npm install -g commitizen

Set up:

1
2
3
$ npm install -g cz-conventional-changelog

$ echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc

or

1
$ commitizen init cz-conventional-changelog --save-dev --save-exact

^ this results in modification of your package.json to:

1
2
3
4
5
  "config": {
    "commitizen": {
      "path": "cz-conventional-changelog"
    }
  }

Now one can just do git cz instead of git commit and enjoy the benifits!

Also, one could add it to npm-scripts

1
2
3
"scripts": {
    "commit": "git-cz"
  }

And then execute: npm run commit.

GIT FTW!

commitizen

```

Suggest a module

Comments