demo.mov
Generate conventional commits with AI
Ensure you have read, tr, jq, git, tail, sed, and curl installed on your system. Most developers will already have these tools, but if you need to install them, use the following commands for your operating system:
# macOS
$ brew install jq git curl tail sed read tr
# Linux (Debian-based)
$ sudo apt install jq git curl tail sed read tr
# Linux (Red Hat-based)
$ sudo dnf install jq git curl tail sed read tr
# Linux (Arch-based)
$ sudo pacman -S jq git curl tail sed read trOr if you already have curl you can run the following script to detect OS and install it automatically.
$ curl -s http://commit.jaw.dev/install.sh | shAfter confirming the installation of these tools, navigate to any project directory that uses git. Within this directory, execute the commit script with the following command:
$ curl -s http://commit.jaw.dev/ | sh-ai,--ai-providerSpecify AI provider (openai or gemini, default: gemini)-k,--api-keySpecify the API key for the AI provider-dr,--dry-runRun the script without making any changes-nv,--no-verifySkip message selection-h,--helpDisplay this help message
$ curl -s http://commit.jaw.dev/ | sh -s -- --no-verify
$ curl -s http://commit.jaw.dev/ | sh -s -- --dry-run
$ curl -s http://commit.jaw.dev/ | sh -s -- -ai openai
$ curl -s http://commit.jaw.dev/ | sh -s -- -ai gemini
$ curl -s http://commit.jaw.dev/ | sh -s -- -ai openai --api-key YOUR_API_KEY
$ curl -s http://commit.jaw.dev/ | sh -s -- -ai gemini --api-key YOUR_API_KEY
$ curl -s http://commit.jaw.dev/ | sh -s -- -nv
$ curl -s http://commit.jaw.dev/ | sh -s -- -dr
$ curl -s http://commit.jaw.dev/ | sh -s -- -h
$ curl -s http://commit.jaw.dev/ | sh- See RECIPE for
recipeguide. - See DEVELOPMENT for
developmentguide. - See CONTRIBUTION for
contributionguide.
Distributed under the MIT License © wajeht. See LICENSE for more information.