![](/img/trans.png)
[英]Merge staging repository bare repository after push via hooks (GIT, Windows, GitStack)
[英]Putting git hooks into repository for Windows
我已经创建了一个githook文件夹,其中包含git存储库中的git钩子。 在Windows上将链接钩子传递到.git/hooks
的最佳方法是什么?
假设您的钩子位于d:\\ githook \\ hooks \\
git init --template=/d/githook/
git clone --template=/d/githook/
git config init.templateDir /d/githook/
将钩子放在.. \\ Git \\ share \\ git-core \\ templates \\ hooks \\
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.