Back to services

Gogs

Painless self-hosted Git Service written in Go.

View alternatives to Gogs
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction

Gogs (Go Git Service) is an open-source, self-hosted Git service that aims to be the simplest way to set up your own Git platform. It is written in Go and compiles to a single binary, so it runs on every platform Go supports, including Linux, macOS, Windows and ARM devices. The project is released under the MIT license.

Key Features

  • Repository hosting: Access Git repositories over SSH and HTTP(S), create public or private repositories, and use repository mirroring and migration.
  • Collaboration: Includes the common collaboration tools: issues, pull requests, wikis and milestones.
  • Organizations and permissions: Supports organizations, teams and collaborator management, with fine-grained control over repository access.
  • Webhook integration: Connects to external services such as CI/CD and chat tools.
  • User authentication: In addition to local accounts, users can authenticate through external methods such as LDAP and SMTP.
  • Web interface: Comes with a built-in web interface for browsing code, viewing commit history and editing files online.

Target Users and Use Cases

Gogs is a good fit for individual developers, small teams and organizations who want to stay in control of their code data. Because its resource usage is very low, it can run on a Raspberry Pi, a low-end VPS or a NAS, which makes it well suited to home labs and internal code repositories.

Core Strengths

  • Lightweight: Low memory and CPU usage, with modest hardware requirements.
  • Easy to deploy: A single binary works out of the box, and configuration is completed through a web wizard after the first launch.
  • Cross-platform: Runs on almost any platform Go can compile for.
  • Free and open source: Released under the MIT license, so you can use and modify it freely.

Installation and Deployment

Common ways to deploy it:

  1. Binary package: Download the archive for your platform from the official site, extract it, run ./gogs web, and then complete the installation with the wizard in your browser.
  2. Docker: Deploy quickly using the official image gogs/gogs.
  3. Build from source: Compile it yourself in a Go environment.

Technical Requirements

  • Database: Supports SQLite3, MySQL, PostgreSQL and more.
  • Git must be installed on the server.
  • For SSH access, you can use the system's own SSH service or enable Gogs's built-in SSH server.

Worth Noting

Gitea, a well-known self-hosted Git service, was forked from Gogs. By comparison, Gogs has a leaner feature set and a steadier pace of updates, which suits users who only need basic Git hosting and collaboration features.