# \#hook

**URL:** https://discourse.julialang.org/tag/hook/453.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Test a Julia Package as a Git Hook](https://discourse.julialang.org/t/test-a-julia-package-as-a-git-hook/39140)

<div class="topic-metadata">

**Author:** [@logankilpatrick](https://discourse.julialang.org/u/logankilpatrick)\
**Replies:** 6\
**Last updated:** [May 29, 2025, 9:30am UTC](https://discourse.julialang.org/t/test-a-julia-package-as-a-git-hook/39140 "2025-05-29T09:30:12Z")

</div>

Hey all, I want to try to set my git configuration such that when I commit and before I push, my git hooks fire and test my certain package. Is anyone doing this with Julia and can share how it’s done?

---

## [How can I run hooks before and after the execution of a command in the REPL?](https://discourse.julialang.org/t/how-can-i-run-hooks-before-and-after-the-execution-of-a-command-in-the-repl/44815)

<div class="topic-metadata">

**Author:** [@NightMachinary](https://discourse.julialang.org/u/NightMachinary)\
**Replies:** 11\
**Last updated:** [August 14, 2020, 3:54pm UTC](https://discourse.julialang.org/t/how-can-i-run-hooks-before-and-after-the-execution-of-a-command-in-the-repl/44815 "2020-08-14T15:54:13Z")

</div>

I first opened an issue on VSCode’s Julia extension to make a bell sound after a long-running command. After more thought, I reached the conclusion that having hooks that run arbitrary Julia code before and after command…
