Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.29 KB

File metadata and controls

60 lines (42 loc) · 1.29 KB

gitmsg

CLI that generates Conventional Commit messages from your staged diff. The full git commit command is copied to your clipboard.

git commit meme

Conventional Commits

Commit messages follow this format:

<type>(<scope>): <description>

Types: feat, fix, chore, refactor, wip, docs. Scope is optional and describes what was affected.

# Examples:
feat(auth): add OAuth2 login support
fix: prevent crash on empty config file

Prerequisites

Installation

git clone https://github.com/edvardwd/gitmsg.git
cd gitmsg
uv tool install .

Usage

Stage your changes, then run:

git add <files>
gitmsg              # let the LLM choose the type
gitmsg <type>       # force a specific type

Options:

  • --scope — include a scope: feat(api): ...
  • --msg-ctx — pass extra context: --msg-ctx "fixes login bug from QA"

Shell Completions

gitmsg --install-completion

This auto-detects your shell (bash, zsh, fish) and installs completions for subcommands and options.