Skip to content

Instantly share code, notes, and snippets.

@jakesyl

jakesyl/rescuetime.md

Last active Jul 7, 2020
Embed
What would you like to do?
Rescuetime Post-commit hook setup

Enabling global rescuetime commit hooks

  1. Enable git templates: git config --global init.templatedir '~/.git-templates'
  2. Create a directory for global hooks: mkdir -p ~/.git-templates/hooks
  3. Download your post commit hook from here
  4. Move the commit hook: mv /path/to/post-commit ~/.git-templates/hooks/.
  5. Make sure your system has permission to execute the file: chmod -R a+x ~/.git-templates/hooks
  6. Make it global ~/.git-templates/hooks/post-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment