From baed3d5d1736dd94c15d67c6cfca991ee69a0316 Mon Sep 17 00:00:00 2001 From: anaxios Date: Thu, 8 Aug 2024 02:22:20 -0700 Subject: [PATCH] Update README.md with new instructions on using aicommit Replace outdated information about `aicommit_groq` Clarify prerequisites for using Aicommit Add setup and usage section to README.md Document bypassing AI-generated commit messages using the `-m` flag --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 08f8393..2383dfd 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,25 @@ -# use AI to draft commit messages +# **Use AI to Draft Commit Messages with Aicommit** -aicommit injects a commit message draft written by RayAI before loading your default editor for review. +Aicommit integrates with RayAI to generate a draft commit message, which is then loaded into your default editor for review and editing. -requires: cur, jq +## **Prerequisites** -> aicommit_groq is broken. Don't use. +To use Aicommit, you need to have the following tools installed: -## use +- `curl` +- `jq` -1. Clone the repo +**Note**: Aicommit-groq is currently broken and should not be used. -1. Add to your `~/.bashrc` +## **Setup and Usage** + +1. **Clone the repository**: Clone the Aicommit repository to your local machine. +2. **Configure your Git editor**: Add the following line to your `~/.bashrc` file, replacing `` with the actual path to the Aicommit executable: ```bash export GIT_EDITOR="aicommit" ``` -1. Use git as normal. +3. **Use Git as normal**: Once configured, you can use Git as you normally would. When you run `git commit`, Aicommit will generate a draft commit message using RayAI, which will then be loaded into your default editor for review and editing. -```bash -git commit -``` - -Using the `-m` flag will bypass generating a message `git commit -m` +**Bypassing AI-generated messages**: If you prefer to write your own commit message, you can use the `-m` flag with `git commit`, like this: `git commit -m "your message here"`. This will bypass the AI-generated message and allow you to write your own message directly.