Deploying Git Client-Side Hooks

Tuesday, January 24, 2017

First of all let’s define what Git hook is. Like a Git documentation explain Git hooks is a “way to fire off custom scripts when certain important actions occur”. There are two kinds of hooks: “client-side” and “server-side”. In this post we will talk about how we can deploy our client-side hooks in the simplest way possible.   When you think about client-side hooks there are two main issues to think about: 1) If a developer delete the repository and clone it again, how can he add the hooks again? 2) If a developer creates a new repository how can he add the...