commit-formatter

Crates.iocommit-formatter
lib.rscommit-formatter
version0.3.0
created_at2020-11-01 01:43:07.056833+00
updated_at2025-04-25 06:39:25.240369+00
descriptionA CLI tool to help you write git commit
homepagehttps://github.com/Eliot00/commit-formatter
repositoryhttps://github.com/Eliot00/commit-formatter
max_upload_size
id307378
size31,337
Elliot (Eliot00)

documentation

README

commit-formatter

A Rust version commitizen.

Download

cargo install commit-formatter

If you get a error: 'command not found: commit-formatter', maybe you need to add cargo installation directory to PATH.

Usage

Recommend to use alias like cf.

git add <files>
cf

Updated: after version 0.2.1, this crate's binary target name specified to git-cf, so you can use it with git cf as a git subcommand.

Custom

Put a commit-format.json in your project directory.

Example

[
	{
		"text": "特性",
		"description": "新功能"
	},
	{
		"text": "",
		"description": "修復bug"
	}
]
Commit count: 23

cargo fmt