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
- Initiate Commit:
Run the commit command as usual:
ai-git-cli commit [--config configs/config.yaml]
- 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. - 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.
Metadata
Release files for ai-git-cli 0.1.6
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 | Actions |
|---|---|---|---|---|
| ai_git_cli-0.1.6.tar.gz | 20.5 kB | Without provenance | Details for ai_git_cli-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ai_git_cli-0.1.6-py3-none-any.whl | Python 3 | none | any | Details for ai_git_cli-0.1.6-py3-none-any.whl |
Total release size: 33.6 kB
Release files / ai_git_cli-0.1.6.tar.gz
| Download URL | ai_git_cli-0.1.6.tar.gz |
|---|---|
| Size | 20.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdd52509b31b8038aeb25256117b95093e79e9981fca419d85a9866a9816dfdb
|
|
BLAKE2b-256 checksum How to use checksums |
60c92d2c80747f447989b7779871db9bbd38fef39d13413c07a219c822f2fa94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Release files / ai_git_cli-0.1.6-py3-none-any.whl
| Download URL | ai_git_cli-0.1.6-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3193d65ac696813db4ecc4ad913025d33415f02bc0a008127c6821ec694e166e
|
|
BLAKE2b-256 checksum How to use checksums |
c6c59a45a8135187e3fa5124f14b7c4e5a65e7e4e41282149f5d6d883682519a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.9
|
Security for ai-git-cli 0.1.6
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.