https://github.com/marocchino/acommit
generate commit message with chatgpt api
https://github.com/marocchino/acommit
cli commit git gpt
Last synced: 9 months ago
JSON representation
generate commit message with chatgpt api
- Host: GitHub
- URL: https://github.com/marocchino/acommit
- Owner: marocchino
- Created: 2023-03-29T23:29:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-30T21:59:09.000Z (about 3 years ago)
- Last Synced: 2025-04-20T07:56:19.283Z (about 1 year ago)
- Topics: cli, commit, git, gpt
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Acommit
Generate commit message with chatgpt api
## Install
Download the binary from [GitHub Releases](https://github.com/marocchino/acommit/releases/) and drop it in your $PATH.
Or use go install
```bash
go install github.com/marocchino/acommit
```
## Usage
```bash
# from your repo
git add .
acommit
```
## Config
You can customize the prompt by modifying `~/.config/acommit/prompt.txt`.
### I18n example
If you want to write the commit message in a different language, you can add that language after the prompt. Let's say you're in Japanese.
```
And, Translate it to Japanese except prefix.
```
### commit convention
Using `gitmoji convention with emoji` by default. You may have several other options.
- [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
- gitmoji convention with emoji markup