commitly is a Git CLI extension that generates commit messages using an AI service.
To install the CLI tool, download the latest release from the GitHub releases page.
To use the commitly command, simply run:
commitlyTo preview the commit messages before committing, use the --preview option:
commitly --previewTo configure the .gitconfig file with the API key, add the following section to your .gitconfig file:
[commitly]
apiKey = YOUR_API_KEY_HEREReplace YOUR_API_KEY_HERE with your actual API key.
To set the commitly.api-key using the command git config --global, run the following command:
git config --global commitly.api-key YOUR_API_KEY_HEREReplace YOUR_API_KEY_HERE with your actual API key.
Here are some examples of how to use the commitly command:
# Generate a commit using the AI service
commitly# Preview a commit using the AI service, then commit it
commitly --preview# Generate maximum 2 commits using the AI service
commitly --max 2To read the current configuration, use the config command:
commitly config readTo update the CLI tool, use the update command:
commitly updateThe command will output a generated commit message based on the changes in your repository.