change default git hooks

前端 未结 4 2266
温柔的废话
温柔的废话 2020-11-28 05:52

Not sure if this is possible in git (I haven\'t found it but I may be using the wrong vocabulary in my searches), but it be would useful to be able to modify and enable hook

4条回答
  •  死守一世寂寞
    2020-11-28 06:32

    For MacPorts dorectory will be /opt/local/share/git-core/templates/

    To share hooks or templates with team members I usually create subdirectory in project like $PROJECT_DIR/lib/git/hooks then create Rake task or shell script to copy cp $PROJECT_DIR/git/hooks/* $PROJECT_DIR/.git/hooks. Symbolic links doesn't work.

提交回复
热议问题