Setup usage of the provided scripts like:
git clone https://github.com/flederwiesel/git-templates "$HOME/.git"
git config --global init.templatedir "$HOME/.git"
Now, whenever a new git repository is initialised, the templates contained herein are copied to the repo structure.
- hooks/pre-commit
- Enforces a username - setup upon first commit - to be enforced on commits.
- hooks/pre-commit.user
- Used as template for for hooks/pre-commit