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