簡體   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