pre-pull git-hook to run locally before pull
I’m experimenting with git-hooks and custom repo layout, where I need to prepare (update in a special way) sources before pulling changes from the remote.
I couldn’t find the proper git-hook in the official list, and few related questions (like Is there any git hook for pull?) aren’t applicable in my case, since they usually focus on the post-pull phase (i.e. can be handled with post-merge
or a simlar hook), while post-fetch is the last phase when I can do my tricks with the sources 🙂
git commit-msg hook trigger only on specific commit types
I created a .git/hooks/commmit-msg
hook that is triggered correctly on git commit
but on top of that, as other git actions such as
git hook is triggered but not executed
I created a post-receive hook like that