创建 /.husky/commit-msg 文件:
/.husky/commit-msg
npx --no-install commitlint --edit "$1"
此配置已尽可能考虑到 Windows 和 macOS 之间的通用性。