Context
I have created a directory hooks/ that contains my git hooks to allow them to be visible and version-controlled. However, for git to use them, they have to be copied to .git/hooks/. Currently, I have them copied across upon each commit, meaning any changes only take effect after this commit.
Action
A post-save hook should be created for the hook files that copies them to the .git/hooks/ directory.
Context I have created a directory
hooks/
that contains my git hooks to allow them to be visible and version-controlled. However, for git to use them, they have to be copied to.git/hooks/
. Currently, I have them copied across upon each commit, meaning any changes only take effect after this commit.Action A post-save hook should be created for the hook files that copies them to the
.git/hooks/
directory.