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
This feature is useful if your project follows a specific commit message standard or if you're using tools that rely on these commit formats.
132
133
134
+
#### Custom Prompts
135
+
136
+
You can customize the LLM's behavior with the `--prompt` flag to guide commit message generation:
137
+
138
+
```sh
139
+
# Write commit messages in a specific language
140
+
aicommits -p "Write commit messages in Italian"
141
+
142
+
# Focus on specific aspects of the changes
143
+
aicommits -p "Focus on performance implications of changes"
144
+
145
+
# Use a specific style or tone
146
+
aicommits -p "Use technical jargon suitable for senior developers"
147
+
148
+
# Include specific details in the message
149
+
aicommits -p "Always mention the specific function names and file paths changed"
150
+
```
151
+
133
152
### Git hook
134
153
135
154
You can also integrate _aicommits_ with Git via the [`prepare-commit-msg`](https://git-scm.com/docs/githooks#_prepare_commit_msg) hook. This lets you use Git like you normally would, and edit the commit message before committing.
0 commit comments