Git remote/shared pre-commit hook
问题 With a one official repository as the remote, and multiple local repositories cloned from it, can a pre-commit hook be scripted on that main repository and be enforced on all clones of it? 回答1: I don't think so, as hooks are not cloned. May be if that hook script is itself versioned, and then link to (symbolic link) in the clone servers (provided their OS support that link feature). Or maybe if the hooks are part of a git template directory used for creating the clones (that would only ensure