Commitizen Guide

The Commitizen_Project

Installation

pipx install commitizen

Usage

documentation

git cz commit

Auto-Check Commits via Git Hooks

documentation

#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2026 Tomáš Havlas <tomas@havlas.me>
#
# SPDX-License-Identifier: Apache-2.0

set -euo pipefail

if ! command -v cz >/dev/null 2>&1; then
  echo "no cz. try running pipx install commitizen"
  exit 127
fi

# Enforce commit message format using Commitizen.
git cz check --allow-abort --commit-msg-file "$1"

Revision #13
Created 2026-04-14 12:20:43 UTC by Tomáš Havlas
Updated 2026-05-20 08:50:16 UTC by Tomáš Havlas