Skip to main content

An AI-powered Git commit message generator and manager.

Project description

AI-Git-CLI Tool Documentation

Introduction

The AI-Git-CLI Tool assists developers in creating structured and meaningful Git commit messages using artificial intelligence. It analyzes unstaged changes, groups them logically, generates descriptive commit messages, and automates the commit process.

Installation

Install the tool via PyPi:

pip install ai-git-cli

Custom Instructions During Commit

The AI-Git-CLI tool now allows you to provide custom instructions or prompts during the commit process. This feature enables the AI to incorporate your specific feedback, resulting in more tailored commit messages and logically grouped changes.

How to Use

  1. Initiate Commit: Run the commit command as usual:
    ai-git-cli commit [--config configs/config.yaml]
    
  2. Provide Custom Instructions: During the commit process, you'll be prompted:
    Do you want to add any custom instructions for the AI? [y/n]: y
    Enter your custom instructions: Focus on summarizing new features and bug fixes clearly.
    
  3. AI-Enhanced Commit: The AI will generate commit messages and group changes based on your provided instructions, ensuring that the commits align with your specific preferences and project needs.

Benefits

  • Personalized Commit Messages: Tailor commit messages to reflect the nuances of your project.
  • Improved Change Grouping: Logical grouping of changes based on your instructions enhances codebase maintainability.
  • Enhanced Workflow: Integrates seamlessly into your existing Git workflow, providing AI assistance without disrupting your development process.

Example Interaction

ai-git-cli commit --config configs/config.yaml
Unstaged changes:
┏━━━━━━━━━━━━━━━┓
┃ README.md      ┃
┣━━━━━━━━━━━━━━━┫
┃ ...diff details... ┃
┗━━━━━━━━━━━━━━━┛
Do you want to add any custom instructions for the AI? [y/n]: y
Enter your custom instructions: Emphasize performance improvements and code refactoring in the commit messages.
Analyzing and grouping changes...
Generating commit messages...
Proposed Commits
┏━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Group ┃ Files         ┃ Commit Message             ┃
┡━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ 1     │ README.md     │ refactor: Improved documentation clarity. │
│ 2     │ app.py        │ feat: Enhanced performance in data processing. │
└───────┴───────────────┴─────────────────────────────┘
Commit for files: README.md
Suggested Message: refactor: Improved documentation clarity.
Choose action [accept/edit/skip]: accept
Commit for files: app.py
Suggested Message: feat: Enhanced performance in data processing.
Choose action [accept/edit/skip]: accept
Proceed with these commits? [y/n]: y
Commits created successfully.
Do you want to amend the commit history? [y/n]: n

This feature empowers you to guide the AI, ensuring that the generated commits are aligned with your project's specific requirements and your personal or team preferences.

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

ai_git_cli-0.1.3.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

ai_git_cli-0.1.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file ai_git_cli-0.1.3.tar.gz.

File metadata

  • Download URL: ai_git_cli-0.1.3.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for ai_git_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 85418d20ba5bd2f55a0c8435a395316cbb48399b0305a2ef7e890c7f2f8ca76a
MD5 a8b6e64d5752e3b1baaa1987ee0b6b0f
BLAKE2b-256 cda321c750cc3bfb71f3ee5b2860149f603e03b0fae83977c576bc070adc0f66

See more details on using hashes here.

File details

Details for the file ai_git_cli-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ai_git_cli-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for ai_git_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a8115670e694f95a2a76b2a63ac46ad9940f5e056222347a0c60b90045b37abe
MD5 a5244e61b53f2213266af333b56b3651
BLAKE2b-256 e1efea3c06da3077b303c4f07d91e9089b688ce697da5f6dd4c7cb9e108a555e

See more details on using hashes here.

Supported by

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