2025
Git Pre-Commit Hooks Run Once per Commit, Not per File

Git pre-commit hooks run once per commit (not per file), so you can filter by file to keep the commits efficient.

How to Remove Markdown Frontmatter Programmatically

Detect if the file starts with ---, then strip out everything up to the next ---.

Handling Case-Sensitive File Renames in Git

Always use git mv for file renames in git-tracked folders.