git-commit-helper

Crates.iogit-commit-helper
lib.rsgit-commit-helper
version
sourcesrc
created_at2025-05-07 16:56:20.263021+00
updated_at2025-05-10 16:42:47.317481+00
descriptionGit Commit Helper is a practical tool that leverages large language models (LLMs) to analyze changes in a Git repository. It helps users generate meaningful commit messages, addressing the difficulties users may encounter when writing commit messages. At the same time, it provides a user-friendly command-line interaction experience.
homepage
repositoryhttps://github.com/newdee/git-commit-helper.git
max_upload_size
id1664113
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
newdee (newdee)

documentation

README

Git Commit Helper GitHub stars

Overview

Git Commit Helper is a practical tool that leverages large language models (LLMs) to analyze changes in a Git repository. It helps users generate meaningful commit messages, addressing the difficulties users may encounter when writing commit messages. At the same time, it provides a user - friendly command - line interaction experience.

Preview

You can use the git-commit-helper command directly to generate meaningful commit messages. Additionally, you can also use it within lazygit to quickly submit commits. Here is a preview video of using git-commit-helper in lazygit.

asciicast

Install

You can either download the corresponding package released in the release section or use the following command to install:

cargo install git-commit-helper

Usage

  • Set OPENAI_BASE_URL(Optional),OPENAI_API_KEY(Required) in your environment.
  • Use this command after your git add command.
Usage: git-commit-helper [OPTIONS]

Options:
  -m, --model <MODEL>          [default: gpt-4o]
      --max-token <MAX_TOKEN>  [default: 2048]
  -h, --help                   Print help
  -V, --version                Print version

License

This project is licensed under the MIT License. See the LICENSE file for details.

🙏 Support

If you find this project helpful, please consider giving it a ⭐️!

Commit count: 0

cargo fmt