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
{{ message }}
This repository was archived by the owner on Feb 10, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+84-5Lines changed: 84 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,16 @@
1
1
# auto-commit
2
2
3
-
Automatically generate git commit messages using AI. Analyzes your staged changes and creates clear, conventional commit messages.
3
+
Automatically generate git commit messages using Claude 3 Haiku. Analyzes your staged changes and creates clear commit messages. Uses the conventional commit format by default, but you can also train it to use a repo or author-specific style.
4
4
5
5
## Features
6
6
7
7
- Generates clear, concise commit messages from staged changes
8
-
- Interactive editing with vim
9
-
- Secure API key storage
8
+
- Supports multiple commit formats:
9
+
- Conventional Commits (default)
10
+
- Angular
11
+
- Semantic Git Commits (with emojis)
12
+
- Linux Kernel style
13
+
- Repository or author-specific commit styles
10
14
- Simple CLI interface
11
15
12
16
## Installation
@@ -45,15 +49,41 @@ cd auto-commit
45
49
deno task install
46
50
````
47
51
52
+
### Updating
53
+
54
+
```bash
55
+
# If installed from source
56
+
cd auto-commit
57
+
deno task update
58
+
59
+
# If using pre-built binary
60
+
# Download the latest release and follow installation steps above
61
+
```
62
+
48
63
## Usage
49
64
50
65
```bash
51
66
# Optional: Set up git alias
52
67
git config --global alias.ac '!auto-commit'
53
68
54
-
# Use the tool
69
+
# Use the tool with default commit style (conventional)
55
70
git add <files>
56
71
auto-commit # or 'git ac' if alias configured
72
+
73
+
# Use a specific commit format
74
+
auto-commit --format=conventional # default
75
+
auto-commit --format=angular # Angular style
76
+
auto-commit --format=semantic # with emojis
77
+
auto-commit --format=kernel # Linux kernel style
78
+
79
+
# View repository authors
80
+
auto-commit --list-authors
81
+
82
+
# Learn commit style from repository history
83
+
auto-commit --learn
84
+
85
+
# Learn commit style from specific author
86
+
auto-commit --learn --author="user@example.com"
57
87
```
58
88
59
89
Example output:
@@ -78,10 +108,59 @@ Proposed commit:
78
108
79
109
On first run, you'll be prompted to enter your [Anthropic API key](https://console.anthropic.com/account/keys).
0 commit comments