I\'m on Windows 7 trying to use a batch file to open the GitBash shell and make a git call. This is the contents of my batch file:
REM Open GitBash C:\\Wind
In windows I created a git.bat file, and associated it to the .hook extension.
if not exist %1 exit set bash=C:\Program Files (x86)\Git\bin\bash.exe "%bash%" --login -i -c "exec "%1""
After that you can run the .hook files like every .bat or .cmd file except that they are running under git shell...