Skip to content

Commit 251df05

Browse files
authored
Update README.md
1 parent 2ca0dcc commit 251df05

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,29 @@
1-
# git_diff_auto_commit
1+
2+
### Overview
3+
24
This is a Python script designed to read git diff output and leverage Ollama to generate commit messages for each file. When you run this script, commits will be automatically created for all staged files.
5+
6+
### Installation
7+
8+
- [Python Ollama](https://github.com/ollama/ollama-python)
9+
- [Olama Server](https://ollama.com/download)
10+
- [Ollama Model](https://ollama.com/library/gemma3)
11+
12+
This script currently uses the `gemma3:4b` model.
13+
14+
### Usage
15+
16+
Place the `auto_commit.py` file in the root directory of your project.
17+
If ollama server is running, run the script using the command
18+
19+
```
20+
python3 auto_commit.py
21+
```
22+
23+
### Miscellaneous
24+
25+
Contributions and ideas are welcome, such as:
26+
27+
- Modifying the prompt, model, or LLM provider.
28+
29+
- Generating commit messages for individual files or a single message for all files.

0 commit comments

Comments
 (0)