@stephansama / ai-commit-msg
generate commit messages using ai
Open Table of contents
pnpm install @stephansama/ai-commit-msg| Option | Alias | Description | Type |
|---|---|---|---|
--config |
-c |
Path to config file | string |
--output |
-o |
Output file for commit-msg | string |
--verbose |
-v |
Enable verbose logging | boolean |
-
Install and initialize husky
npm install --save-dev husky && npx husky init -
create the
prepare-commit-msghook by creating a file located at.husky/prepare-commit-msg#!/bin/sh ai-commit-msg -o "$1"