Skip to main content

An AI to generate great commit messages

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

awesome_commit-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

awesome_commit-0.1.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file awesome_commit-0.1.0.tar.gz.

File metadata

  • Download URL: awesome_commit-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for awesome_commit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97ceca849293519a45726fcfad678f172bec5f6d12df3a1269ec8ca6dd643570
MD5 4ec70b35aea4c7c137639b6495c99b35
BLAKE2b-256 649c5003073d4d1bab5301c5ad5933cb02d6050c8ac165e8714d17db9719cbc0

See more details on using hashes here.

File details

Details for the file awesome_commit-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: awesome_commit-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for awesome_commit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e6510bfc656fbfdb341c7556a92771c29326f02539d64f20736ffd1ce46f7890
MD5 689fcbd767b3c9aa68ab4a5a55eaf019
BLAKE2b-256 64d0ae73dc0463820fa1f77d1561e55977b0ed4794360d11ff761bddf73fada9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page