Write a pre-commit Hook
Automate a guardrail before every commit.
A advanced Git challenge worth 20 points. Solve it hands-on in a real Git environment in your browser - no local setup, no fake shells.
The Challenge
Task: In /tmp/repo, create an executable .git/hooks/pre-commit that BLOCKS any commit whose staged changes contain DO_NOT_COMMIT (exit non-zero to reject).