Writing Git Hooks using Javascript

What are hooks🤔

Git hooks are scripts that Git executes before or after events such as: commit, push, and pull. Git hooks are a built-in feature — no need to download anything. Git hooks are run locally. without wasting time lets dig deep dive into hooks.

Writing Git Hooks Using javascript😎

We are going to write hook that will check the commit message that statisfy our policy (In my case commit message length should be greater than 10) so lets start.



In this post we have talked about git hooks and how they work under the hood . I hope you enjoyed it . In the upcoming post I will share different event capturing using hooks till then Bye bye.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhishek N

Abhishek N

Abhishek is a Software developer who is passionate about learning technology related stuff and implementing it in real world.