Skip to main content

A CLI tool to automatically generate git commit messages using OpenAI GPT-4

Project description

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.10 and pip installed on your system. Clone the repository and navigate to the project directory. Then, run the following command:

pip install aigit

This will install the AIGIT package and its dependencies.

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

Contributing

Contributions are welcome! Please feel free to submit a pull request.

License

AIGIT is open-source software licensed under the MIT license.

Manual deployment instructions

  1. Update the version number in setup.py
  2. Delete dist/, build/ and aigit.egg-info folders
  3. Run python setup.py sdist bdist_wheel
  4. Run twine upload dist/*

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

aigit-0.1.7.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

aigit-0.1.7-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file aigit-0.1.7.tar.gz.

File metadata

  • Download URL: aigit-0.1.7.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for aigit-0.1.7.tar.gz
Algorithm Hash digest
SHA256 4ca1851eda0a3e4d94e6e39e387d29599e54b612ddab79925f7a7e0d632ef052
MD5 94458eb9029e7e0a9c0f0bd7c23338a3
BLAKE2b-256 e7d0200500c5e95fe061b310abd7320848632f3975f45f526b6c981862cd56a8

See more details on using hashes here.

File details

Details for the file aigit-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: aigit-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for aigit-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0cfe704a6c4303d046d8ae62c46d30bfddf1b81254e876a32d4316e34f9d067e
MD5 ee4ac00b80f87b7d6b503ff49039cf96
BLAKE2b-256 7c825cdd67a53cbd64331f431a068ff114c3d78585f094e543e67031e4668e54

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