Skip to content

Commit 79d8711

Browse files
authored
Update README.md
1 parent c688133 commit 79d8711

File tree

1 file changed

+67
-1
lines changed

1 file changed

+67
-1
lines changed

README.md

Lines changed: 67 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,67 @@
1-
# commitly-hub
1+
# commitly
2+
3+
`commitly` is a Git CLI extension that generates commit messages using an AI service.
4+
5+
## Installation
6+
7+
To install the CLI tool, download the latest release from the [GitHub releases page](https://github.com/glconti/commitly-hub/releases).
8+
9+
## Usage
10+
11+
To use the `commitly` command, simply run:
12+
13+
```sh
14+
commitly
15+
```
16+
17+
To preview the commit messages before committing, use the `--preview` option:
18+
19+
```sh
20+
commitly --preview
21+
```
22+
23+
## Configuration
24+
25+
To configure the `.gitconfig` file with the API key, add the following section to your `.gitconfig` file:
26+
27+
```ini
28+
[aiCommit]
29+
apiKey = YOUR_API_KEY_HERE
30+
```
31+
32+
Replace `YOUR_API_KEY_HERE` with your actual API key.
33+
34+
To set the `commitly.api-key` using the command `git config --global`, run the following command:
35+
36+
```sh
37+
git config --global commitly.api-key YOUR_API_KEY_HERE
38+
```
39+
40+
Replace `YOUR_API_KEY_HERE` with your actual API key.
41+
42+
## Examples
43+
44+
Here are some examples of how to use the `commitly` command:
45+
46+
```sh
47+
# Generate a commit message using the AI service
48+
commitly
49+
```
50+
51+
## Config Command
52+
53+
To read the current configuration, use the `config` command:
54+
55+
```sh
56+
commitly config read
57+
```
58+
59+
## Update Command
60+
61+
To update the CLI tool, use the `update` command:
62+
63+
```sh
64+
commitly update
65+
```
66+
67+
The command will output a generated commit message based on the changes in your repository.

0 commit comments

Comments
 (0)