You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,22 @@ The way to use AIGitComment is really simple. For example, you can run `aigitcom
59
59
60
60
If you would like more usage settings, just use `aigitcommit --help` to get more details.
61
61
62
+
### Docker Image
63
+
64
+
You can also utilise the Docker image without installing the binary executable file.
65
+
66
+
Simply enter the subsequent command or reference the `compose.yaml` file.
67
+
68
+
```bash
69
+
docker run --rm ghcr.io/mingcheng/aigitcommit:latest \
70
+
-v .:\repo:ro \
71
+
-e OPENAI_API_BASE='<openai api base>' \
72
+
-e OPENAI_API_TOKEN='<token>' \
73
+
-e OPENAI_MODEL_NAME='<model name>'
74
+
```
75
+
76
+
Notice: If you wish to utilise the `--commit` option, you must ensure that the `/repo` directory is writable.
77
+
62
78
### Git Hook
63
79
64
80
The `AIGitCommit` also supports git hooks. To integrate the hook, simply copy the `hooks/prepare-commit-msg` file into the repository's `.git/hooks/prepare-commit-msg`, and you're done.
0 commit comments