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