Git hooks to be used with your projects.
Clone this repository as a submodule into base project.
$ git submodule add [email protected]:tcarbone073/.githooks.git
Configure the git hooks path by editing .git/config
[core]
hooksPath = .githooks
Or run git config
$ git config --global core.hooksPath .githooks
Ensure any hook is executable.
$ chmod 755 pre-commit
On Windows, chmod
will not work. A proper shebang
makes the file executale.
#!/bin/bash; C:/Program\ Files/Git/usr/bin/sh.exe