Create the hooks templatedir.
mkdir -p /CUSTOM/PATH/hooksAnnounce the templatedir to Git.
editor /PATH/TO/.gitconfig[init]
templatedir = /CUSTOM/PATHmkdir -p ~/.gittemplates/hooks
vim ~/.gitconfig[init]
templatedir = ~/.gittemplatesFirst install sl (Steam Locomotive) and then create a symlink.
After committing, a steam locomotive will cross the terminal, trying to prevent you from pushing to early. Spoiler: This won't always help!
ln -s "$(readlink -m ./post-commit.sh)" /CUSTOM/PATH/hooks/post-commitln -s "$(readlink -m ./post-commit.sh)" ~/.gittemplates/hooks/post-commitFork! Fork it! Fork you! Fork me, right?