Pre-commit hooks to save you from yourself

from blog lmno.lol @alvaro, | ↗ original
Wanted to try out some code, but needed to ensure never checked in. Git pre-commit hooks are handy in this space. Add the following script to search for either @COMMITFAIL or @NOCOMMIT in the staged files. If found, attempts to commit will fail. Based on https://gist.github.com/rex/223b4be50285f6b8b3e06dea50d15887: #!/bin/bash set -o nounset set...