# Pre receive hook

**URL:** https://forum.gitea.com/t/pre-receive-hook/7436
**Category:** General
**Created:** [June 16, 2023, 6:54am UTC](https://forum.gitea.com/t/pre-receive-hook/7436 "2023-06-16T06:54:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sriapr98](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/sriapr98/32/3789_2.png) [@sriapr98](https://forum.gitea.com/u/sriapr98)
#### Post date: [June 16, 2023, 6:54am UTC](https://forum.gitea.com/t/pre-receive-hook/7436/1 "2023-06-16T06:54:01Z")

</div>

Hi Folks. We are trying to setup setup server side pre-receive hooks for one of our repository which is self hosted in on-prem gitea. Can someone please share steps/any documentation to accomplish this?

---

<div class="post-metadata">

### Author: ![lunny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/lunny/32/4701_2.png) [@lunny](https://forum.gitea.com/u/lunny)
#### Post date: [July 16, 2023, 3:46am UTC](https://forum.gitea.com/t/pre-receive-hook/7436/2 "2023-07-16T03:46:22Z")

</div>

Git hooks are disabled by default. You can enable it by changing the app.ini.
