Githooks
Git hooks with Windows, gitea and linux!⌗
I run and host a small gitea git server on my own server locally, and wanted to implement git hooks for this very website and gitea, so that the following prodecure would work flawlessly:
- Make change to website
- git add/commit
- git push
- git hook on webserver started
- git clone from gitea
- run hugo
- serve static data to public website
I had some problems with this, especially on the windows side (don’t ask why i have to use windows 😋), but i finally managed to fix those and now it works like a charm! I just need to push to my repo and the git hook does the rest, really easy to work on this website from anywhere in the world really!
Sometimes living win+linux is okay, it just needs a bit of struggle and it works :D