Automatically generate git commit messages using Google Gemini AI.
Visit Google AI Gemini to get your API key.
Run the following commands to install the necessary packages:
pip install llm
llm install llm-gemini
Set your API key in the environment:
export GEMINI_API_KEY=your_google_gemini_key
To enable the gcm
command, copy the contents of added_into_zshrc.sh into your shell configuration file (~/.bashrc
or ~/.zshrc
).
Note: For generating commit messages in Chinese, use the Chinese version of added_into_zshrc_ch.sh.
- Navigate to your git repository.
- Make changes to your files.
- Stage your changes with
git add
. - Use the
gcm
command to generate a commit message automatically.
For more details on usage and options, refer to the documentation in the repository.
- Optimized the prompt for better clarity and effectiveness.
- Improved installation instructions for user convenience.
- Added support for generating commit messages in multiple languages.
- Enhanced error handling for API key configuration.