Ruby_git_hooks is a library to allow easy writing and installing of git hooks in Ruby. It abstracts away the differences between different hook interfaces and supplies implementations of some common Git hooks. It allows overriding "git clone" to automatically install your prefered hooks.
Gemfile gem 'ruby_git_hooks', '~> 0.0.45'
install gem install ruby_git_hooks