GithubHelp home page GithubHelp logo

zaidfadhil / kemit Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 31 KB

Generate Git commit messages with AI

License: MIT License

Go 65.81% Shell 29.13% Makefile 5.07%
ai ai-commit ai-commits bash commit commits git git-commit ollama

kemit's Introduction

kemit

Go Report Card

Automate the process of generating commit messages based on the diff of staged files in a Git repository

Requirements

  • Git
  • Ollama (with llama3 or mistral)
  • Supported platforms: macOS, Linux

Installation

Shell script

Install Kemit on macOS or Linux using the following command:

Using Curl

sudo curl -fsSL https://raw.githubusercontent.com/zaidfadhil/kemit/main/install.sh | sh

Or using Wget

sudo wget -qO- https://raw.githubusercontent.com/zaidfadhil/kemit/main/install.sh | sh

From Source

  1. Clone the repository:
git clone https://github.com/zaidfadhil/kemit.git
cd kemit
  1. Build the application:
make install

Setup

Make sure ollama installed and running in serve mode.

To set or update the configuration, use the config command:

kemit config [options]
  • --provider: Set the LLM Provider. (default: ollama).
  • --ollama_host: Set the Ollama Host. Example: http://localhost:11434. (required).
  • --ollama_model: Set the Ollama Model. Example: llama3. (required).

example:

kemit config --ollama_host http://localhost:11434 --ollama_model llama3

Usage

To generate a commit message:

kemit

If there are no staged changes, the application will output "nothing to commit". Otherwise, it will generate and print a commit message based on the staged diff.

Uninstall

To uninstall Kemit, you can use the uninstall script which removes the installed binary:

sudo curl -fsSL https://raw.githubusercontent.com/zaidfadhil/kemit/main/uninstall.sh | sh
// or
sudo wget -qO- https://raw.githubusercontent.com/zaidfadhil/kemit/main/uninstall.sh | sh

License

kemit is licensed under the MIT License.

kemit's People

Contributors

loule95450 avatar zaidfadhil avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

kemit's Issues

Add Support for Conventional Commits

Feature Details:

  • Option for Conventional Commits: Introduce a config option that enables or disables the generation of commit messages following the Conventional Commits specification.
  • Commit Types: Ensure that the commit messages generated include the appropriate types (e.g., feat, fix, docs, style, refactor, test, chore).
  • Scoping: Allow for optional scoping of the commit messages to specify the part of the codebase affected (e.g., feat(parser): add ability to parse arrays).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.