Skip to main content

Awesome Commit - An AI Git Commit Helper

Setup

Clone the project and run the following commands to install the dependencies:

pip install uv
uv venv --python python3.12
uv pip install -r requirements.txt

Copy the .env.template file to .env and add your Gemini API key.

To obtain a Gemini API key, go to Google AI Studio and click the "Get API Key" button.

If you plan to use this for corporate work, you may need to use a corporate Google account to access the Google AI Studio. If you do not want Google to use your code or prompts to improve their AI models, you may want to switch to a corporate or paid plan.

Usage

To run the git commit CLI helper, run the following command:

source .venv/bin/activate # Activate the virtual environment
PYTHONPATH=src python -m awesome_commit # Run the git commit CLI helper

Integrate with Git

To integrate the git commit CLI helper with git, add the following line to your .gitconfig file:

[alias]
        # Enable commit-ai
        ai = "!PYTHONPATH=<path-to>/src <path-to>/git-cli/.venv/bin/python -m awesome_commit"

Update the <path-to> with the path to the project directory.

Now, you can run the git commit CLI helper using the following command:

git ai

Building from source

You can build the package from source with the following commands:

source .venv/bin/activate
uv pip install build
python -m build

Metadata

Release files for awesome-commit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for awesome-commit 0.1.0
File Size Uploaded
awesome_commit-0.1.0.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for awesome-commit 0.1.0
File Interpreter ABI Platform
awesome_commit-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / awesome_commit-0.1.0.tar.gz

Download URL awesome_commit-0.1.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
97ceca849293519a45726fcfad678f172bec5f6d12df3a1269ec8ca6dd643570
BLAKE2b-256 checksum
How to use checksums
649c5003073d4d1bab5301c5ad5933cb02d6050c8ac165e8714d17db9719cbc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release files / awesome_commit-0.1.0-py3-none-any.whl

Download URL awesome_commit-0.1.0-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6510bfc656fbfdb341c7556a92771c29326f02539d64f20736ffd1ce46f7890
BLAKE2b-256 checksum
How to use checksums
64d0ae73dc0463820fa1f77d1561e55977b0ed4794360d11ff761bddf73fada9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page