Skip to content

Instantly share code, notes, and snippets.

@deepak
Last active February 11, 2016 18:20
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 deepak/27a55020bfcb56546da1 to your computer and use it in GitHub Desktop.
Save deepak/27a55020bfcb56546da1 to your computer and use it in GitHub Desktop.
overcommit hooks
  • add overcommit. to catch things like, long commit messages

    echo "2.3.0" > .ruby-version gem install overcommit overcommit --install overcommit --sign run overcommit --list (to see list of hooks) run overcommit --run (to test it out once)

    some interesting hooks to try out, but not enabled:

    although guard (https://github.com/guard/guard) or some other node alternative seems better for some of these PostCheckout rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment