2024-08-08 02:15:21 -07:00
|
|
|
# use AI to draft commit messages
|
2024-08-06 19:59:29 -07:00
|
|
|
|
2024-08-08 01:38:37 -07:00
|
|
|
aicommit injects a commit message draft written by RayAI before loading your default editor for review.
|
2024-08-06 19:59:29 -07:00
|
|
|
|
2024-08-08 02:15:21 -07:00
|
|
|
requires: cur, jq
|
2024-08-06 20:27:17 -07:00
|
|
|
|
2024-08-08 01:38:37 -07:00
|
|
|
> aicommit_groq is broken. Don't use.
|
|
|
|
|
2024-08-08 02:15:21 -07:00
|
|
|
## use
|
2024-08-08 01:38:37 -07:00
|
|
|
|
2024-08-08 02:15:21 -07:00
|
|
|
1. Clone the repo
|
|
|
|
|
|
|
|
1. Add to your `~/.bashrc`
|
2024-08-06 20:21:34 -07:00
|
|
|
|
|
|
|
```bash
|
2024-08-08 01:38:37 -07:00
|
|
|
export GIT_EDITOR="<path/to/>aicommit"
|
2024-08-06 19:59:29 -07:00
|
|
|
```
|
2024-08-08 01:38:37 -07:00
|
|
|
|
2024-08-08 02:15:21 -07:00
|
|
|
1. Use git as normal.
|
|
|
|
|
2024-08-06 20:21:34 -07:00
|
|
|
```bash
|
2024-08-08 01:38:37 -07:00
|
|
|
git commit
|
2024-08-06 19:59:29 -07:00
|
|
|
```
|
2024-08-08 02:15:21 -07:00
|
|
|
|
|
|
|
Using the `-m` flag will bypass generating a message `git commit -m`
|