Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
  • Go 83%
  • Handlebars 7%
  • TypeScript 5.3%
  • CSS 1.8%
  • JavaScript 1.3%
  • Other 1.5%
Find a file
wxiaoguang 1c117a9352
refactor: clean up comment model (#39779)
Try to figure out whether we can reuse the "comment" table for #36862

The legacy "CommitID" field is removed, and updated the comment.

Some useless and outdated "doctor fixes" are also removed together.
2026-10-14 19:55:30 +00:00
.devcontainer chore: upgrade Go version in devcontainer image to 1.26 (#37374) 2026-04-22 21:47:59 +02:00
.github chore(deps): update dependencies (#39742) 2026-10-12 18:12:22 +02:00
assets refactor!: move go-chi/session into Gitea (#39504) 2026-10-02 21:08:14 +02:00
build enhance(emoji): update to Unicode 17, unify and lazy-load emoji data (#39363) 2026-09-24 20:23:15 +00:00
cmd perf(repo): fetch the initial commit instead of pushing it (#39628) 2026-10-06 14:39:36 +00:00
contrib ci(release): automate signed release tags and release notes (#39544) 2026-10-06 05:21:07 +00:00
custom/conf fix(git): leave reflog expiry to git's defaults (#39703) 2026-10-09 19:37:41 +00:00
docker fix: Various security fixes (#38103) 2026-06-17 16:06:51 +00:00
docs ci(release): automate signed release tags and release notes (#39544) 2026-10-06 05:21:07 +00:00
modelmigration refactor: migrate protected branch fields into one json column and support system users (#39735) 2026-10-13 00:40:21 +00:00
models refactor: clean up comment model (#39779) 2026-10-14 19:55:30 +00:00
modules fix(markup): parse \(...\) inline math next to letters and digits (#39773) 2026-10-14 12:11:13 -07:00
options feat(repo): allow deleting protected branches (#39243) 2026-10-14 07:19:49 +00:00
public chore(deps): update dependencies (#39742) 2026-10-12 18:12:22 +02:00
routers fix(actions): fix schedule cleanup and default branch switch (#39740) 2026-10-14 19:34:46 +00:00
services refactor: clean up comment model (#39779) 2026-10-14 19:55:30 +00:00
snap ci: skip reverted commits in release notes, publish tagged snaps to stable (#39657) 2026-10-08 11:35:03 +02:00
templates refactor: issue comment context menu and buttons (#39771) 2026-10-14 12:07:31 +00:00
tests fix(actions): fix schedule cleanup and default branch switch (#39740) 2026-10-14 19:34:46 +00:00
tools ci: skip reverted commits in release notes, publish tagged snaps to stable (#39657) 2026-10-08 11:35:03 +02:00
web_src refactor: issue comment context menu and buttons (#39771) 2026-10-14 12:07:31 +00:00
.air.toml refactor: prepare to decouple the "model migration" package and "models" package (#38533) 2026-07-20 03:42:02 +00:00
.dockerignore fix(build): use the VERSION file consistently in docker builds and source tarballs (#39683) 2026-10-08 17:49:59 +00:00
.editorconfig chore: drop "oidc_wellknown" tmpl, use json directly (#38731) 2026-07-31 18:32:01 +02:00
.envrc Enable direnv (#31672) 2024-07-23 12:07:41 +00:00
.gitattributes enhance(emoji): update to Unicode 17, unify and lazy-load emoji data (#39363) 2026-09-24 20:23:15 +00:00
.gitignore Allow multiple projects per issue and pull requests (#36784) 2026-04-30 22:38:05 +08:00
.golangci.yml refactor: fix go vet errors related to composite literals (#39341) 2026-09-24 09:17:25 +00:00
.ignore Clean bindata (#34728) 2025-06-16 12:03:51 +00:00
.mailmap [chore] add git mailmap for proper attribution of authorship (#33612) 2025-02-16 20:49:28 +08:00
.markdownlint.yaml Enable markdownlint no-trailing-punctuation and no-blanks-blockquote (#29214) 2024-02-17 13:18:05 +00:00
.shellcheckrc build(release): use native golang toolchain for official release builds (#37828) 2026-08-22 10:38:21 +00:00
.spectral.yaml refactor: serve the api specs as plain json (#38715) 2026-07-31 14:16:27 +00:00
.yamllint.yaml Move jobparser from act repository to Gitea (#36699) 2026-02-22 19:33:01 +00:00
AGENTS.md perf(git): speed up activity top authors and subdirectory listings (#39526) 2026-10-01 15:51:07 +00:00
BSDmakefile Fix build errors on BSD (in BSDMakefile) (#27594) 2023-10-13 15:38:27 +00:00
cliff.toml ci(release): automate signed release tags and release notes (#39544) 2026-10-06 05:21:07 +00:00
CODE_OF_CONDUCT.md Fixed minor typos in two files #HSFDPMUW (#34944) 2025-07-06 09:27:26 -07:00
CONTRIBUTING.md ci: reject breaking marker on non-breaking PR types (#39584) 2026-10-07 03:08:08 +02:00
crowdin.yml Convert locale files from ini to json format (#35489) 2025-12-19 09:50:48 -08:00
DCO Remove address from DCO (#22595) 2023-01-24 18:52:38 +00:00
Dockerfile chore: update Go to v1.27 (#39068) 2026-08-24 07:28:17 +00:00
Dockerfile.rootless chore: update Go to v1.27 (#39068) 2026-08-24 07:28:17 +00:00
eslint.config.ts chore(deps): update dependencies, add new lint rules, fix lint (#39601) 2026-10-05 10:11:50 +00:00
eslint.json.config.ts chore(deps): update eslint, remove eslint-plugin-sonarjs (#38536) 2026-07-20 10:08:34 +02:00
flake.lock chore: bump pnpm to v11 in nix flake (#38856) 2026-08-11 07:38:42 +00:00
flake.nix chore: bump pnpm to v11 in nix flake (#38856) 2026-08-11 07:38:42 +00:00
go.mod enhance(actions): show the steps the runner reports (#39720) 2026-10-12 22:36:25 +02:00
go.sum enhance(actions): show the steps the runner reports (#39720) 2026-10-12 22:36:25 +02:00
LICENSE Fix typo 2016-11-08 08:42:05 +01:00
main.go fix(git)!: use internal proxy for all git operations (#39426) 2026-09-29 14:43:36 +02:00
main_timezones.go add timetzdata build tag to binary releases (#33463) 2025-02-05 04:17:08 +00:00
MAINTAINERS chore(maintainers): add wingsallen as maintainer (#38913) 2026-08-17 22:03:18 +00:00
Makefile fix(build): use the VERSION file consistently in docker builds and source tarballs (#39683) 2026-10-08 17:49:59 +00:00
package.json chore(deps): update dependencies (#39742) 2026-10-12 18:12:22 +02:00
playwright.config.ts Revert "Add WebKit to e2e test matrix (#37298)" (#37315) 2026-04-20 19:49:38 +00:00
pnpm-lock.yaml chore(deps): update dependencies (#39742) 2026-10-12 18:12:22 +02:00
pnpm-workspace.yaml chore(deps): update dependencies (#39256) 2026-09-07 16:35:03 +02:00
pyproject.toml chore(deps): update dependencies (#39742) 2026-10-12 18:12:22 +02:00
README.md ci(release): automate signed release tags and release notes (#39544) 2026-10-06 05:21:07 +00:00
README.zh-cn.md ci(release): automate signed release tags and release notes (#39544) 2026-10-06 05:21:07 +00:00
README.zh-tw.md ci(release): automate signed release tags and release notes (#39544) 2026-10-06 05:21:07 +00:00
renovate.json5 enhance(citation): render citations server-side (#39373) 2026-10-03 02:28:34 +00:00
SECURITY.md docs: Update PGP key expiration date to July 23, 2027 (#38747) 2026-08-02 17:52:16 +00:00
stylelint.config.ts chore: bump declaration-strict-value and reconfigure it (#39080) 2026-08-24 20:05:37 +00:00
tailwind.config.ts chore: drop "oidc_wellknown" tmpl, use json directly (#38731) 2026-07-31 18:32:01 +02:00
tsconfig.json chore(frontend): target ES2022 (#39420) 2026-09-25 05:56:07 +00:00
types.d.ts enhance(citation): render citations server-side (#39373) 2026-10-03 02:28:34 +00:00
uv.lock chore(deps): update dependencies (#39742) 2026-10-12 18:12:22 +02:00
vite.config.ts chore: update eslint, enable more rules and fix their findings (#39438) 2026-09-26 07:20:39 +00:00
vitest.config.ts chore(deps): update dependencies (#39306) 2026-09-14 13:18:00 +00:00

Gitea

繁體中文 | 简体中文

Purpose

The goal of Gitea is to make the easiest, fastest, and most painless way of setting up a self-hosted all-in-one software development service, including Git hosting, code management, code review, issue tracking, project kanban, wiki, team collaboration, package registry and CI/CD which can reuse GitHub Actions.

As Gitea is written in Go, it works across all the platforms and architectures that are supported by Go, including Linux, macOS, FreeBSD/OpenBSD and Windows on x86, amd64, ARM, RISC-V 64 and PowerPC architectures.

For online demonstrations, you can visit demo.gitea.com.

For accessing free Gitea service (with a limited number of repositories), you can visit gitea.com.

To quickly deploy your own dedicated Gitea instance on Gitea Cloud, you can start a free trial at cloud.gitea.com, or use container (docker/podman/etc) to deploy on your own server with the official image.

Documentation

You can find comprehensive documentation on our official documentation website.

It includes installation, administration, usage, development, contributing guides, and more to help you get started and explore all features effectively.

If you have any suggestions or would like to contribute to it, you can visit the documentation repository

Building

See docs/build-setup.md for prerequisites and docs/development.md for setting up a local development environment, linting, and testing.

If you'd like to build from source or make a distribution package, see docs/build-source.md for more information.

After building, you can run ./gitea web to start the server, or ./gitea help to see all available commands.

Contributing

Expected workflow is: Fork -> Patch -> Push -> Pull Request

Note

  1. YOU MUST READ THE CONTRIBUTORS GUIDE BEFORE STARTING TO WORK ON A PULL REQUEST.
  2. New to the codebase? The development guide walks through setting up a local environment and building from source.
  3. If you have found a vulnerability in the project, please write privately to security@gitea.io. Thanks!

Translating

Crowdin

Translations are done through Crowdin. If you want to translate to a new language, ask one of the managers in the Crowdin project to add a new language there.

You can also just create an issue for adding a language or ask on Discord on the #translation channel. If you need context or find some translation issues, you can leave a comment on the string or ask on Discord.

Get more information from the translation section of our contributing guide.

Official and Third-Party Projects

We provide an official go-sdk, a CLI tool called tea and an action runner for Gitea Action.

We maintain a list of Gitea-related projects at gitea/awesome-gitea, where you can discover more third-party projects, including SDKs, plugins, themes, and more.

Communication

If you have questions that are not covered by the documentation, you can get in contact with us on our Discord server or create a post in the discourse forum.

Authors

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

FAQ

How do you pronounce Gitea?

Gitea is pronounced /ɡɪ’ti:/ as in "gi-tea" with a hard g.

How do I configure Gitea?

For dynamic config options, you can change it on your admin panel's configuration section.

For static config options, you can edit your app.ini file and restart the instance. See app.example.ini or configuration documentation for more details.

Where can I find the security patches?

Check the release notes and security advisories for security patches.

(more FAQs are listed in FAQ documentation)

License

This project is licensed under the MIT License. See the LICENSE file for the full license text.

Further information

Looking for an overview of the interface? Check it out the screenshots!

Login/Register Page

Login Register

User Dashboard

Home Issues Pull Requests Milestones

User Profile

Profile

Explore

Repos Users Orgs

Repository

Home Commits Branches Labels Milestones Releases Tags

Repository Issue

List Issue

Repository Pull Requests

List Pull Request File Commits

Repository Actions

List Details

Repository Activity

Activity Contributors Code Frequency Recent Commits

Organization

Home