7 releases (stable)

new 1.1.2 Feb 6, 2025
1.1.1 Jan 22, 2025
0.1.2 Jan 7, 2025

#38 in Machine learning

Download history 218/week @ 2025-01-04 180/week @ 2025-01-11 264/week @ 2025-01-18 16/week @ 2025-01-25 60/week @ 2025-02-01

531 downloads per month

Custom license

33KB
799 lines

git-acm - git auto-commit-message

Crates.io Total Downloads GitHub Actions Workflow Status

generate meaningful commit messages locally using AI.

installation

curl -sSL https://raw.githubusercontent.com/shivamhwp/git-acm/main/install.sh | sh

or if you have cargo installed on your system.

cargo install git-acm

how to use

  1. add gemini-api-key or openai-api-key or anthropic-api-key or deepseek-api-key
  2. add these in your project's .env file or export them in terminal.
# for gemini api

GEMINI_API_URL="https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent"
GEMINI_API_KEY=""

# for anthropic api

ANTHROPIC_API_URL="https://api.anthropic.com/v1/messages"
ANTHROPIC_API_KEY=""

# for openai api

OPENAI_API_URL="https://api.openai.com/v1/chat/completions"
OPENAI_API_KEY=""

# for llama api (using ollama)

LLAMA_API_URL="http://localhost:11434/api/generate"
LLAMA_MODEL_NAME= "llama3.2:1b"

# for deepseek api

DEEPSEEEK_API_URL="https://api.deepseek.com/chat/completions"
DEEPSEEEK_API_KEY=""

  1. run git-acm.

📍 commands available

use : choose which api to run. options : openai | anthropic | gemini | llama | deepseek .

autocommit : enables or disables the autocommit functionality.

📍 example

    git-acm use <api_name>       # Choose which API to use (openai, anthropic, gemini, llama)
    git-acm autocommit enable    # Enable automatic commits with generated messages
    git-acm autocommit disable   # Disable automatic commits
    git-acm                      # Generate a commit message using the currently selected API

Dependencies

~17–30MB
~500K SLoC