622 B
622 B
git-hooks
Installation
- Clone repository
git clone https://gitea.ekirin.com/Intis/git-hooks.git
Use in single repository
-
Copy
intis-hooksdirectory content toyour-repo-dir/.git/hooksdirectory. -
Make sure
prepare-commit-msgis executable. If not, make it:chmod +x prepare-commit-msg.
Use globally, as default hooks
-
Create
~/.git-templates -
Run the command:
git config --global init.templateDir '~/.git-templates'
-
Reinitialize existing git repos you wish to use this in: "git init"
-
Rename
your-repo-dir/.git/intis-hookstoyour-repo-dir/.git/hooks