Create the hooks templatedir.
mkdir -p /CUSTOM/PATH/hooks
Announce the templatedir to Git.
editor /PATH/TO/.gitconfig
[init]
templatedir = /CUSTOM/PATH
mkdir -p ~/.gittemplates/hooks
vim ~/.gitconfig
[init]
templatedir = ~/.gittemplates
First 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-commit
ln -s "$(readlink -m ./post-commit.sh)" ~/.gittemplates/hooks/post-commit
Fork! Fork it! Fork you! Fork me, right?