script-commit
v1.0.3
Published
A tool that leverages machine learning techniques to understand the content, context, and purpose of each change ina repo and uses this information to generate a concise and descriptive commit message that accurately reflects the changes made.
Downloads
2
Readme
Generating Commit Messages with Script-Commit
Prerequisites
Before you can use Script-Commit to generate commit messages, you'll need to set the OPENAI_API_KEY
environment variable on your machine. You can obtain an API key from the OpenAI API website.
Usage
To generate a commit message based on your staged changes, follow these steps:
- Stage your changes using
git add
command. For example, to stage all changes in the current directory, run:
git add .
- Run
npx script-commit
command in your terminal. This will generate a commit message based on your changes and copy it to your clipboard.
That's it! You've successfully generated and committed your changes with a commit message generated by Script-Commit.