Any commitizen users here?
Wanted behavior:
- install commitizen
- run
git commit - see the same nice menu as when running
git cz
Current behavior:
- install commitizen
- run
git commit - NO nice menu as when running
git cz, just default git interface
Any commitizen users here?
Wanted behavior:
git commitgit czCurrent behavior:
git commitgit cz, just default git interfaceyes you can do it with the git hooks. Just do the following as it is written on the https://commitizen.github.io/cz-cli/ site.
Add in the file .git/hooks/prepare-commit-msg (if the file is not present just create it) in your root folder of the project following lines:
#!/bin/bash
exec < /dev/tty && node_modules/.bin/git-cz --hook || true
If the file is already there just add the exec line and git commit will now show the same menu as when git cz.
The commitizen/cz-cli project suggests:
Now, simply use
git czinstead ofgit commitwhen committing.
If git-cz is in your PATH, you can call git cz. But it won't overshadow git commit, simply offer a different alternative.