Skip to content

Tired of writing commit messages? The aicommit tool, powered by Ollama, uses AI to generate commit messages tailored to your style based on your past commits.

License

Notifications You must be signed in to change notification settings

acrosa/aicommits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7b6b3c6 · Sep 30, 2024

History

5 Commits
Sep 30, 2024
Sep 30, 2024
Sep 30, 2024
Sep 30, 2024

Repository files navigation

AICommit

AICommit is a powerful tool that leverages AI to generate commit messages tailored to your style, based on your past commits. Powered by Ollama, this simple script streamlines your workflow and ensures consistency in your commit messages.

Features

  • AI-generated commit messages based on staged changes
  • Learns from your previous commit messages for style consistency
  • Interactive mode allowing you to accept, edit, or reject suggested messages
  • Option to view the full prompt sent to the AI model

Prerequisites

Before you begin, ensure you have the following installed:

  1. Git – For version control
  2. Ollama – Powers the AI for generating messages

Installation

  1. Download the aicommit script
curl -sL https://raw.githubusercontent.com/acrosa/aicommits/refs/heads/main/aicommit -o ~/Downloads/aicommit
  1. Make it executable and move it to a directory in your PATH:
chmod +x ~/Downloads/aicommit
sudo mv ~/Downloads/aicommit /usr/local/bin/aicommit

Demo

Here's a video of the tool in action:

Demo

Why Use AICommit?

  • Time-Saving: Quickly generate well-crafted commit messages
  • Consistency: Aligns with your existing commit message style
  • Personalized: Learns from your previous messages to match your conventions
  • Flexible: Allows for easy editing of suggested messages

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License

Acknowledgements

  • Ollama for providing the AI model

About

Tired of writing commit messages? The aicommit tool, powered by Ollama, uses AI to generate commit messages tailored to your style based on your past commits.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages