Version Control Guides
Git Client Guide

Installation
sudo apt install git git-lfs
Initial Client Setup

git config --global user.name "[NAME]"
git config --global user.email "[EMAIL]"
git config --global init.defaultBranch "main"
git config --global core.excludesFile "~/.gitignore"
git lfs install
tee "$HOME/.gitignore" >/dev/null <<'EOF'
.idea
.vscode
EOF
Git Repository Guide

Exclude Files from Version Tracking

# SPDX-License-Identifier: 0BSD
# SPDX-FileCopyrightText: none
*.backup
*.bak
*.key
*.local
*.log
*.pem
*.sqlite*
*.swp
*.tmp
*~
Keep Git Hooks in Project

Git Hooks Initialization Recipe
Just
# SPDX-License-Identifier: 0BSD
# SPDX-FileCopyrightText: none
#
# Manage the Git hooks living in this repository.
# Run the recipes at the project root, not at the `.just` directory.
set working-directory := '..'
GITHOOKS := ".githooks"
# Configure Git to use the local `.githooks` directory.
init:
git config --local core.hooksPath "{{ GITHOOKS }}"
# Manage the Git hooks living in this repository.
[group('githooks')]
mod githooks '.just/githooks.just'
Make
# SPDX-License-Identifier: 0BSD
# SPDX-FileCopyrightText: none
#
# Manage the Git hooks living in this repository.
GITHOOKS := .githooks
.PHONY: githooks
githooks:
git config --local core.hooksPath "$(GITHOOKS)"
include .githooks/githooks.mk
Commitizen Guide

Installation
pipx install commitizen
Auto-Check Commits via Git Hooks

#!/usr/bin/env bash
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: 2026 Tomáš Havlas <tomas@havlas.me>
#
# Enforce the Conventional Commits format with Commitizen.
set -euo pipefail
if ! command -v cz >/dev/null 2>&1; then
echo "no cz, try running 'pipx install commitizen'"
exit 127
fi
git cz check --allow-abort --commit-msg-file "$1"