AI-powered Git Helper (AIGIT)
AIGIT is a command-line interface (CLI) tool that uses OpenAI to generate commit messages for your Git repositories. It checks the status of your Git repository, generates a commit message based on the changes, and commits those changes.
Installation
To install AIGIT, you need Python 3.6+ installed on your system. You have several options:
Global Installation (Recommended)
Using uv (fastest):
uv tool install aigit
Using pipx (alternative):
pipx install aigit
These methods install AIGIT globally and isolate its dependencies, making it available as the aig command anywhere on your system.
Regular Installation
If you prefer a regular installation:
pip install aigit
Or using uv:
uv pip install aigit
Configuration
Before using AIGIT, you need to configure your OpenAI API key. Run the following command and enter your API key when prompted:
aig --config
Usage
$ aig -h
usage: aig [-h] [--config] [-y]
AI-powered Git Helper
options:
-h, --help show this help message and exit
--config Configure API Key
-y, --yes Auto commit without asking for confirmation
To use AIGIT, navigate to your Git repository and run the following command:
aig
AIGIT will check the status of your Git repository, generate a commit message, and ask for your confirmation before committing the changes. If you want to auto commit without confirmation, use the -y or --yes option:
aig -y
Development
Setup Development Environment
- Clone the repository
- Install uv if you haven't already:
pip install uv - Install dependencies:
uv pip install .
Making Changes
The project uses pyproject.toml for dependency management and build configuration. To add new dependencies:
uv add <package-name>
To remove dependencies:
uv remove <package-name>
Version Updates
When releasing a new version, update the version number in both:
pyproject.toml: Update theversion = "x.x.x"field under[project]aigit/__init__.py: Update the__version__ = "x.x.x"variable
Building and Publishing
- Update the version as described above
- Run the deployment script:
./scripts/deploy.sh
The script will:
- Clean any existing build artifacts
- Build the package with uv
- Upload to PyPI
- Clean up build artifacts if successful
- Keep build artifacts for inspection if upload fails
For manual deployment, you can run these commands individually:
# Clean artifacts
rm -rf dist/ build/ *.egg-info/
# Build
uv build
# Upload to PyPI
uvx twine upload dist/*
Contributing
Contributions are welcome! Please feel free to submit a pull request.
License
AIGIT is open-source software licensed under the MIT license.
Metadata
Release files for aigit 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| aigit-0.1.9.tar.gz | 6.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aigit-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.1 kB
Release files / aigit-0.1.9.tar.gz
| Download URL | aigit-0.1.9.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69bd0a4b13ea328d9b58feefc8cd01d1ae34b17ebeba75841a98b11fe06202d3
|
|
BLAKE2b-256 checksum How to use checksums |
d413cd4328815687ce184e343b42348b6eed890eeaf704f4b405dfa829624228
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.6
|
Release files / aigit-0.1.9-py3-none-any.whl
| Download URL | aigit-0.1.9-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
72e69b9d89e97693ece04797996141f0452ce7e57c0e4dbf4fd36b0312986359
|
|
BLAKE2b-256 checksum How to use checksums |
4144c5af03227343cddc816f6ac2b8e53ed111eae2a70e36812ed1e917140174
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.6
|
Security for aigit 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.