# Git hooks - Add git hooks to Elixir projects

**URL:** <https://forum.elixirforum.com/t/git-hooks-add-git-hooks-to-elixir-projects/32721>\
**Category:** Announcing\
**Tags:** library, git, git-hooks, git\_hooks\
**Created:** [June 29, 2020, 12:39pm UTC](https://forum.elixirforum.com/t/git-hooks-add-git-hooks-to-elixir-projects/32721 "2020-06-29T12:39:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![qgadrian](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/qgadrian/32/6526_2.png) [@qgadrian](https://forum.elixirforum.com/u/qgadrian)\
**Post date:** [October 30, 2021, 11:28am UTC](https://forum.elixirforum.com/t/git-hooks-add-git-hooks-to-elixir-projects/32721/3 "2021-10-30T11:28:56Z")

</div>

Hey @r-c!

> Is this supposed to occur upon compilation?

Correct! ([here it is where in the code](https://github.com/qgadrian/elixir_git_hooks/blob/master/lib/git_hooks.ex#L6)).

It’s weird, I just tested it myself in a new project and it worked fine 😕 Since the auto-install will run every time the dependency is compiled, could it be possible that it was already compiled in your case?

Sorry for the late response mate 🙏

---

_[View the full topic](https://forum.elixirforum.com/t/git-hooks-add-git-hooks-to-elixir-projects/32721)._
