Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mmv08/git-commit-ollama


https://github.com/mmv08/git-commit-ollama

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        

# git-commit-ollama

This script allows you to generate a commit message for your staged changes using an LLM.

## Installation

1. Install [ollama](https://ollama.com/)

2. Clone the repository

```
git clone https://github.com/mmv08/git-commit-ollama.git
```

3. Create a custom model using the `Modelfile` in this repository

```
ollama create gitcommit -f ./Modelfile
```

4. Add the script to your local executable path

```
cp gcm-llm.sh $HOME/.local/bin/gcm-llm
```

## Usage

```
# Stage your changes
git add .

# Generate a commit message
gcm-llm
```