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.
Git Commit Messages from a File
You can specify a file to use as a commit message in Git. This is a clean approach for writing longer or more detailed commit messages.
VS Code CLI and URL Schemes
A quick reference for the most useful Visual Studio Code command-line interface (CLI) options and URL schemes.