LoginSignup
1
1

More than 5 years have passed since last update.

プロジェクト単位で git hooks をソース管理したい

Posted at

そういう時ってどうすればいいのかよくわからないので、少し検索した感じをメモします。

1. チェックする本体をソース管理して、そこへ symbolic link 貼る

http://stackoverflow.com/questions/427207/can-git-hook-scripts-be-managed-along-with-the-repository/427269#427269 とか

2. チェックする本体をソース管理して、それを呼び出すだけにする

http://labs.gree.jp/blog/2011/03/2885/#hs_5b7584fe8cb2795509a54288bb30c797_header_8 とか

それの派生で

https://github.com/icefox/git-hooks

こういうツールもあるみたい。
git_hooks/ の中に hook script 入れてソース管理して、
git hooks --installすると、実態はそっちを呼び出すだけになる

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1