Enabling global rescuetime commit hooks
- Enable git templates:
git config --global init.templatedir '~/.git-templates' - Create a directory for global hooks:
mkdir -p ~/.git-templates/hooks - Download your post commit hook from here
- Move the commit hook:
mv /path/to/post-commit ~/.git-templates/hooks/. - Make sure your system has permission to execute the file:
chmod -R a+x ~/.git-templates/hooks