---
title: "Discussion on \"What are Git Hooks?\" | Hashnode"
description: "Discussion on \"What are Git Hooks?\". Introduction\nIn this article, we'll look at what Git Hooks are, why using Git Hooks are beneficial, and some practical examples of how to use them for development.\nWhat are Git Hooks?\nGit hooks are scripts that run automatically every time a particul..."
url: "https://hashnode.com/posts/what-are-git-hooks/5f6ad9cb1c935b2e4c616542"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What are Git Hooks?](https://blog.skay.dev/what-are-git-hooks?utm_source=hashnode&utm_medium=feed)

Introduction In this article, we'll look at what Git Hooks are, why using Git Hooks are beneficial, and some practical examples of how to use them for development. What are Git Hooks? Git hooks are scripts that run automatically every time a particul...

Sep 23, 2020 · 7 min read · blog.skay.dev  
Updated Oct 3, 2020  
Read the article

-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)
-   [#git](https://hashnode.com/tag/git)
-   [#programming](https://hashnode.com/tag/programming)
-   [#github](https://hashnode.com/tag/github)

## Written by

[Skay](https://hashnode.com/@skay)

@skay · Kitchener, Canada

  
[View profile](https://hashnode.com/@skay)

I love to build cool things on the web...

I am a Technical Product Manager and have over two decades of experience building products for enterprises and start-ups. I love to ideate, create things on the web and my expertise lies in how to translate user value when we build engineering solutions.

## Responses 5

Markdown supported · ⌘↵ to post

[Maxi Contieri](https://hashnode.com/@mcsee)

[Sep 25, 2020](https://hashnode.com/posts/what-are-git-hooks/5f6ad9cb1c935b2e4c616542/comment/5f6e296fade1fb598d4397a4)

Excellent !

Very detailed tutorial

For developers it might be an analogy to #observer design pattern

[Skay](https://hashnode.com/@skay)

[Sep 25, 2020](https://hashnode.com/posts/what-are-git-hooks/5f6ad9cb1c935b2e4c616542/comment/5f6e296fade1fb598d4397a4#reply-5f6e2ccfade1fb598d4397de)

Thanks for reading & definitely a great observation on the design pattern :-)

[kris forsubscribe](https://hashnode.com/@krisforsube)

[Sep 24, 2020](https://hashnode.com/posts/what-are-git-hooks/5f6ad9cb1c935b2e4c616542/comment/5f6c0196136a1642fa93ade8)

good read keep it up :)

[Dallas Spohn](https://hashnode.com/@Dallas-Spohn)

[Sep 23, 2020](https://hashnode.com/posts/what-are-git-hooks/5f6ad9cb1c935b2e4c616542/comment/5f6b56f261f6923cac7c0117)

I can not express more how using git-hooks has made our workflow easier. We use pre-commit to do things like remove whitespacing at the end of our DocBook lines, verify tagging, checks spelling and a lot more like berify our book builds. Then after we push the same checks happen in the pipeline on github. I can not say enough about how great git-hooks has been to our developers. Excellent article!!

[Skay](https://hashnode.com/@skay)

[Sep 23, 2020](https://hashnode.com/posts/what-are-git-hooks/5f6ad9cb1c935b2e4c616542/comment/5f6b56f261f6923cac7c0117#reply-5f6b5845ff06f53c8bd63564)

Thanks for reading! I know it's as simple as it can get but it's also very very powerful at the same time. I'm glad you liked the article. Do share for maximum reach 💪

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Sep 23, 2020](https://hashnode.com/posts/what-are-git-hooks/5f6ad9cb1c935b2e4c616542/comment/5f6b11001c935b2e4c61696f)

Really insightful, thanks for sharing!

[Skay](https://hashnode.com/@skay)

[Sep 23, 2020](https://hashnode.com/posts/what-are-git-hooks/5f6ad9cb1c935b2e4c616542/comment/5f6b11001c935b2e4c61696f#reply-5f6b16081c935b2e4c616a1e)

Thanks for reading 🙌

[Tapas Adhikary](https://hashnode.com/@atapas)

[Sep 23, 2020](https://hashnode.com/posts/what-are-git-hooks/5f6ad9cb1c935b2e4c616542/comment/5f6ae04a1c935b2e4c616579)

[Skay](https://hashnode.com/@skay), Nice, detailed one. Thanks for sharing!
