Problem: obviously, the scripts in the .git / hooks directory depend on the file name corresponding to one of:
post-commit pre-commit pre-rebase
etc.
No concept of "file extension" is required because the "shebang line" indicates how the file should work if it runs and runs in your Linux field.
The problem is that you have scripts that you want to run in a Windows window.
Question: Is there a way to execute hook scripts that can be understood on a Windows computer?
, Windows . : 1) Cygwin git bash, shebang, 2) Windows git, shebang . , , ...
, , . python, ".py" PATHEXT (Control Panel, System, Advanced, Environment Variables). . hooks post-commit.py, pre-commit.py .. Windows post-commit , Windows PATHEXT, , "post-commit.extension", . - svn hooks Windows.
3):
Windows script, git , . , -, , git , hook.
Source: https://habr.com/ru/post/1733531/More articles:Как получить значение идентификатора после вызова exec (@Sql) - sql-serverFlash As3 Streaming player - onBWDone - actionscript-3Factory or service template or injection method? - javaJavascript weird closing behavior - javascriptВнезапное чрезмерное использование памяти - multithreadingTinyXML cannot read its own file - c ++Calling a Java web service created using Axis from PHP code - javaIncluding subprojects using the template in the Gradle settings file - javaHow to programmatically exit the iPhone application? - objective-cHow to suppress the temporary part of a .NET DateTime on a display if and only if time part = 00:00:00? - evalAll Articles