Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmv08/git-commit-ollama
https://github.com/mmv08/git-commit-ollama
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mmv08/git-commit-ollama
- Owner: mmv08
- Created: 2024-08-28T16:54:30.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T10:08:16.000Z (2 months ago)
- Last Synced: 2024-10-08T02:41:30.383Z (about 1 month ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```