commit
is an AI-powered commit message generator that helps you streamline your version control workflow.
Instead of racking your brains for a descriptive commit message, simply run the commit
tool. It will automatically
stage all changed files in your git repository and craft a concise, meaningful commit message for you.
- AI-Powered: Leverages OpenAI to generate commit messages.
- Automatic Staging: Stages all changed files in the git repository.
- Customizable: Works with user-provided keys and paths.
go install github.com/kaatinga/commit@latest
commit [global options] command [command options] [arguments...]
--key value
: Provide a valid key to work with ChatGPT.--path value
: Specify the path to your git repository.--help, -h
: Display help information.--version, -v
: Print the current version of the tool.
The tool can optionally read from the OPENAI_API_KEY
environment variable to interface with the OpenAI API. Ensure you
set this variable if you don't intend to use the --key
option directly.
commit --key abcdefg --path /home/user/my-repo
or just:
commit
For further help or to view a list of commands, run:
commit help