# Create hook to auto-write the content of Gitea Repo to file system on post-receive

**URL:** <https://forum.gitea.com/t/create-hook-to-auto-write-the-content-of-gitea-repo-to-file-system-on-post-receive/3041>\
**Category:** Uncategorized\
**Created:** [March 8, 2021, 4:47pm UTC](https://forum.gitea.com/t/create-hook-to-auto-write-the-content-of-gitea-repo-to-file-system-on-post-receive/3041 "2021-03-08T16:47:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salah](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@Salah](https://forum.gitea.com/u/Salah)\
**Post date:** [March 8, 2021, 4:47pm UTC](https://forum.gitea.com/t/create-hook-to-auto-write-the-content-of-gitea-repo-to-file-system-on-post-receive/3041/1 "2021-03-08T16:47:24Z")

</div>

Hi,  
I’m new to Git hooks/Gitea web hooks and would like a simple way to automatically write specific content of the gitea repository to a location on the server that Gitea is running on.

This event should be triggered every time a user updates the gitea repository .

Can someone point me in the correct direction?  
Thanks  
D S

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [March 11, 2021, 7:17am UTC](https://forum.gitea.com/t/create-hook-to-auto-write-the-content-of-gitea-repo-to-file-system-on-post-receive/3041/2 "2021-03-11T07:17:06Z")

</div>

Githooks are available for use in gitea: please see [Config Cheat Sheet - Docs](https://docs.gitea.io/en-us/config-cheat-sheet/) (but note security warning before enabling them to ensure you accept the risk).

However, you could use a CI system such as Drone ([drone.io](http://drone.io)) to run commands on git push.
