繁体   English   中英

将git挂钩放入Windows的存储库

[英]Putting git hooks into repository for Windows

我已经创建了一个githook文件夹,其中包含git存储库中的git钩子。 在Windows上将链接钩子传递到.git/hooks的最佳方法是什么?

假设您的钩子位于d:\\ githook \\ hooks \\

  1. git init --template=/d/githook/ git clone --template=/d/githook/

  2. git config init.templateDir /d/githook/

  3. 将钩子放在.. \\ Git \\ share \\ git-core \\ templates \\ hooks \\

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM