![](/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.