Because of its simplicity, we use remote repository placed on shared disk, accessing it using file system path (\\server\\share). Is is possible, in such case, to run hook s
If you run the command:
git config core.hooksPath .git-hooks
This will look for the hooks in the folder .git-hooks from your project root, same as where you find .git folder. When the commands are run in this folder, take note that the directory being executed from then is the project root - and not in the .git-hooks folder having the actual hooks. This is why you get the "command not found".
Example contents of .git-hooks/post-merge file
!#!/bin/bash
bower install
The "bower install" command is run from the parent directory.