Template for Git repositories¶
prek init-templatedir can be used to set up a template for Git’s
init.templateDir
option, whereby any newly cloned repository will automatically receive the
pre-commit checks without having to run prek install , for example:
$ git config --global init.templateDir ~/.config/git/template
$ prek init-templatedir ~/.config/git/template
prek installed at /Users/veit/.config/git/template/hooks/pre-commit