LinuxCommandLibrary

gitea

TLDR

Start Gitea server

$ gitea
copy
Start with config
$ gitea --config [/etc/gitea/app.ini]
copy
Generate secret key
$ gitea generate secret INTERNAL_TOKEN
copy
Create admin user
$ gitea admin user create --username [admin] --password [password] --email [admin@example.com] --admin
copy
Web command
$ gitea web
copy

SYNOPSIS

gitea [command] [options]

DESCRIPTION

gitea is a self-hosted Git service written in Go. It provides GitHub-like functionality including repositories, issues, pull requests, and CI/CD, all in a single binary.
Gitea is lightweight and fast, suitable for personal or small team use. It supports OAuth, LDAP, and various database backends for enterprise deployments.
gitea provides self-hosted git repository management.

PARAMETERS

web

Start web server.
admin
Admin operations.
generate
Generate tokens/keys.
dump
Backup repository.
--config FILE
Configuration file.
--port PORT
Server port.
--help
Display help information.

CAVEATS

Requires configuration for production. Database setup needed. Reverse proxy recommended.

HISTORY

Gitea was forked from Gogs in 2016, becoming a community-driven project with active development and broader feature set.

SEE ALSO

Copied to clipboard