AI-powered Git commit message generator
Project description
Git-wise
An AI-powered Git commit message generator that helps developers write meaningful and standardized commit messages.
Welcome to Git-Wise
Welcome to Git-Wise, a project born from the realization that my commit skills weren't quite up to par while developing another product! 😎 After about 10 hours of development, we now have this version.
Git-Wise uses GPT to analyze your staged files, automatically generate commit messages, and submit them! It's designed to enhance your Git workflow and improve the quality of your commit history.
As the project is still in the development stage, there may be some issues. However, if you encounter any problems or have ideas for improvement, please feel free to reach out and contribute your code!
Fun fact: Every commit in this repository was crafted with the help of Git-Wise!🫡
Support the Project
If you find Git-Wise helpful... 🤔
Unfortunately, I currently don't have any overseas payment methods 🥹🥹🥹
(But your moral support is greatly appreciated! )
Stay Connected
Follow me on Twitter for updates and more:
Your feedback and contributions are what make open-source projects like Git-Wise thrive. Let's make commit messages great together!
Features
- 🤖 AI-powered analysis of staged files to generate commit messages (currently using GPT-4O-mini)
- 🌍 Support for generating commits in multiple languages
- 🚀 Automatic commit submission
- 📏 Adjustable commit message detail level
Installation
pip install git-wise
Quick Start
- Initialize git-wise:
git-wise init
- Generate a commit message:
git add .
git-wise start
Usage
Basic Commands
# Initialize or reconfigure Git-Wise
git-wise init
# Generate commit message
git-wise start
# Generate commit message with specific options
git-wise start --language en --detail brief --interactive
# Check Git-Wise configuration and environment
git-wise doctor
# Show current configuration
git-wise show-config
# Show staged changes
git-wise show-diff
# Update specific configuration settings
git-wise config --default-language
git-wise config --detail-level
git-wise config --api-key
git-wise config --model
git-wise config --interactive
git-wise config --unlimited-chunk
Configuration Options
- Language: Select your preferred language for commit messages
- Detail Level: Choose between brief, minimal, or detailed commit messages
- API Key: Set your OpenAI API key
- Model: Select the AI model to use
- Interactive Mode: Enable or disable interactive commit creation
- Unlimited Chunk: Enable or disable unlimited chunk mode(for large staged changes)
Examples
Detail Level
if you choose minimal:
if you choose brief:
if you choose detailed:
Development
Setup Development Environment
# Clone the repository
git clone https://github.com/creeponsky/git-wise.git
cd git-wise
# Create virtual environment
python -m venv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
# Install development dependencies
pip install -e "."
Running Tests
find a git repo you need to test, and run the following command:
cd /path/to/your/git/repo
git-wise init
git-wise start
Contributing
We welcome contributions! Please see our Contributing Guide for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- OpenAI for providing the GPT API
- The Python community for excellent tools and libraries
Support
- Visit our website (currently under construction, but we'll add content soon! 😎)
- 📫 For bugs and feature requests, please create an issue
- 📧 For professional support, contact support@git-wise.dev
Changelog
See CHANGELOG.md for all notable changes.
Security
For security issues, please refer to our Security Policy and report them privately as described there.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file git_wise-0.1.4.tar.gz
.
File metadata
- Download URL: git_wise-0.1.4.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9febd0cc070d571d0d83763a0115df0c16e11c3f4f066e4db6b644536e7308b |
|
MD5 | e477c0fb43311cc6726b629ab38c53d3 |
|
BLAKE2b-256 | cc96831f3fac88d6523ff636cf5f1a2437e201ec775724bca318364447f56155 |
File details
Details for the file git_wise-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: git_wise-0.1.4-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0f007c05bd465a8319ac7b09c1fe0a1b675bd4c93e67d3441bf232499b07183 |
|
MD5 | 0df4e81102158c8a16695c1fb8374030 |
|
BLAKE2b-256 | 2f34f2f906ea9920ab00bc258d8cdac9aa6299ebd1e892d4a69a326738d96655 |