[英]Git post-commit hook: How to start a bat-file in Windows
我有一個名為jenkins.bat
的 bat 文件,可以在 jenkins 服務器上開始構建過程。
現在我想在 git 中將這個 bat 文件作為 post-commit-hook 執行。
因此,在文件夾/.git/hooks
創建了以下文件post-commit
:
#!/bin/bash
/.git/hooks/jenkins.bat
但是每次向 git 提交代碼更改時,eclipse 都會拋出異常! 我錯過了什么嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.