Skip to content

Instantly share code, notes, and snippets.

@jakesylvestre
Last active July 7, 2020 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakesylvestre/da64a1d375547a7f6ff2c5e0575c5c73 to your computer and use it in GitHub Desktop.
Save jakesylvestre/da64a1d375547a7f6ff2c5e0575c5c73 to your computer and use it in GitHub Desktop.
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