zk/work/gitea-3.md

1.4 KiB

How To Use Git Hooks with Gitea

Introduction

The popular source code management system Git is quite flexible when it comes to allowing you to perform various tasks when actions are taken on a repository. For example, you might want to send an email when a feature branch is merged into your main branch, or log various Git actions to a file for tracking.

These actions are called hooks, and there are several that you can use for various steps along the way to perform additional work within your Git workflow. This tutorial will take a look at three such hooks to provide an overview of what is possible with this functionality.

Prerequisites

Gitea is a lightweight and flexible source code management system that will be used for the examples here, so before beginning this tutorial, you should have the following:

Publishing a Static HTML Site When Commits are Received

Step 1 :