【发布时间】:2015-11-19 07:30:46
【问题描述】:
基本上就像它所说的那样。想象一下下面的钩子代码:
@echo on
echo.
echo.
echo.
echo %CD% :: Try to print the current dir
echo %GIT_DIR% :: Try to print the Git dir
echo.
echo.
ping 127.0.0.1 -t :: Loop on localhost, because timeout will break the hook
当它运行时它不会打印任何东西,我为此设置了@echo..
任何想法。坦克!
【问题讨论】:
标签: git githooks git-commit pre-commit-hook