This guide explains how to configure a Git repository to be served anonymously over HTTP using Nginx and git-http-backend. This setup allows users to clone and fetch repositories without authentication, and optionally push if configured. It’s ideal for public repositories or simple internal use cases.
- A Linux server with:
- Git installed (
sudo apt install git) - Nginx installed (
sudo apt install nginx) fcgiwrapinstalled (sudo apt install fcgiwrap) to bridge Nginx andgit-http-backend
- Git installed (