How will you run a script automatically when a developer commits a change into GIT?
Git has a way to trigger custom scripts when a particular event occurs. These are called Hooks. We can place these hooks in a hooks directory to trigger actions at certain points during git’s execution. There are two types of hooks: Client Side hooks Server Side hooks In our case, we can write a client-side post-commit hook. This hook will execute a custom script in which we can add the message and script which we want to execute automatically with each commit.