A git hook for conventional git commits
This script follows the Conventional Commits to conventionalize your git commit.
cd <your_project_root_path>
curl https://raw.githubusercontent.com/chgwan/conventional_commits/refs/heads/main/commit-msg -o .git/hooks/commit-msg
chmod u+x .git/hooks/commit-msg
cd <your_project_root_path>
rm .git/hooks/commit-msg
Modify the file .git/hooks/commit-msg line 21
types=('build' 'docs' 'feat' 'fix' 'perf' 'refactor' 'style' 'test' 'chore' 'ci')