go-gitea/gitea

GitHub: go-gitea/gitea

轻量级自托管 Git 服务平台,提供代码托管、协作与 CI/CD 一体化解决方案。

Stars: 54019 | Forks: 6418

# Gitea [![](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/3e3f3054a8193646.svg)](https://github.com/go-gitea/gitea/actions/workflows/release-nightly.yml?query=branch%3Amain "Release Nightly") [![](https://img.shields.io/discord/322538954119184384.svg?logo=discord&logoColor=white&label=Discord&color=5865F2)](https://discord.gg/Gitea "Join the Discord chat at https://discord.gg/Gitea") [![](https://goreportcard.com/badge/code.gitea.io/gitea)](https://goreportcard.com/report/code.gitea.io/gitea "Go Report Card") [![](https://pkg.go.dev/badge/code.gitea.io/gitea?status.svg)](https://pkg.go.dev/code.gitea.io/gitea "GoDoc") [![](https://img.shields.io/github/release/go-gitea/gitea.svg)](https://github.com/go-gitea/gitea/releases/latest "GitHub release") [![](https://www.codetriage.com/go-gitea/gitea/badges/users.svg)](https://www.codetriage.com/go-gitea/gitea "Help Contribute to Open Source") [![](https://opencollective.com/gitea/tiers/backers/badge.svg?label=backers&color=brightgreen)](https://opencollective.com/gitea "Become a backer/sponsor of gitea") [![](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT "License: MIT") [![Contribute with Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod&color=green)](https://gitpod.io/#https://github.com/go-gitea/gitea) [![](https://badges.crowdin.net/gitea/localized.svg)](https://translate.gitea.com "Crowdin") [繁體中文](./README.zh-tw.md) | [简体中文](./README.zh-cn.md) ## 宗旨 本项目的目标是打造一种最简单、最快且最轻松的自托管 Git 服务搭建方式。 由于 Gitea 是用 Go 语言编写的,它可以在 Go 支持的**所有**平台和架构上运行,包括 x86、amd64、ARM 和 PowerPC 架构上的 Linux、macOS 和 Windows。 本项目自 2016 年 11 月起从 [Gogs](https://gogs.io) [分叉](https://blog.gitea.com/welcome-to-gitea/)而来,但已经发生了很多变化。 如需在线演示,您可以访问 [demo.gitea.com](https://demo.gitea.com)。 如需访问免费的 Gitea 服务(有仓库数量限制),您可以访问 [gitea.com](https://gitea.com/user/login)。 要在 Gitea Cloud 上快速部署您自己的专用 Gitea 实例,您可以在 [cloud.gitea.com](https://cloud.gitea.com) 开始免费试用。 ## 文档 您可以在我们的官方[文档网站](https://docs.gitea.com/)上找到详尽的文档。 其中包含安装、管理、使用、开发、贡献指南等内容,以帮助您入门并有效地探索所有功能。 如果您有任何建议或想为其做出贡献,可以访问[文档仓库](https://gitea.com/gitea/docs) ## 构建 在源码树的根目录下,运行: ``` TAGS="bindata" make build ``` 或者如果需要 SQLite 支持: ``` TAGS="bindata sqlite sqlite_unlock_notify" make build ``` `build` 目标分为两个子目标: - `make backend` 需要 [Go Stable](https://go.dev/dl/),所需版本在 [go.mod](/go.mod) 中定义。 - `make frontend` 需要 [Node.js LTS](https://nodejs.org/en/download/) 或更高版本以及 [pnpm](https://pnpm.io/installation)。 下载 go 和 npm 模块需要互联网连接。当从包含预构建前端文件的官方源码包构建时,不会触发 `frontend` 目标,从而可以在没有 Node.js 的情况下进行构建。 更多信息:https://docs.gitea.com/installation/install-from-source ## 使用 构建完成后,默认会在源码树的根目录下生成一个名为 `gitea` 的二进制文件。要运行它,请使用: ``` ./gitea web ``` ## 翻译 [![Crowdin](https://badges.crowdin.net/gitea/localized.svg)](https://translate.gitea.com) 翻译通过 [Crowdin](https://translate.gitea.com) 完成。如果您想翻译成一种新的语言,请让 Crowdin 项目的一位管理员在那里添加一种新语言。 您也可以直接创建一个添加语言的 issue,或者在 Discord 的 #translation 频道上询问。如果您需要上下文或发现一些翻译问题,您可以在该字符串上留言或在 Discord 上询问。关于一般的翻译问题,文档中有一个专门的章节。目前内容还比较少,但我们希望随着问题的出现来充实它。 从[文档](https://docs.gitea.com/contributing/localization)获取更多信息。 ## 官方与第三方项目 我们为 Gitea Action 提供了一个官方的 [go-sdk](https://gitea.com/gitea/go-sdk)、一个名为 [tea](https://gitea.com/gitea/tea) 的 CLI 工具以及一个 [action runner](https://gitea.com/gitea/act_runner)。 我们在 [gitea/awesome-gitea](https://gitea.com/gitea/awesome-gitea) 维护了一份 Gitea 相关项目列表,您可以在那里发现更多第三方项目,包括 SDK、插件、主题等。 ## 交流 [![](https://img.shields.io/discord/322538954119184384.svg?logo=discord&logoColor=white&label=Discord&color=5865F2)](https://discord.gg/Gitea "Join the Discord chat at https://discord.gg/Gitea") 如果[文档](https://docs.gitea.com/)没有涵盖您的问题,您可以通过我们的 [Discord 服务器](https://discord.gg/Gitea)联系我们,或者在 [discourse 论坛](https://forum.gitea.com/)发帖。 ## 作者 - [维护者](https://github.com/orgs/go-gitea/people) - [贡献者](https://github.com/go-gitea/gitea/graphs/contributors) - [译者](options/locale/TRANSLATORS) ## 常见问题 **Gitea 怎么发音?** Gitea 的发音是 [/ɡɪ’ti:/](https://youtu.be/EM71-2uDAoY),就像 "gi-tea" 一样,发硬 g 的音。 **为什么这个不托管在 Gitea 实例上?** 我们[正在努力](https://github.com/go-gitea/gitea/issues/1029)。 **我在哪里可以找到安全补丁?** 在[发布日志](https://github.com/go-gitea/gitea/releases)或[更新日志](https://github.com/go-gitea/gitea/blob/main/CHANGELOG.md)中,搜索关键字 `SECURITY` 以找到安全补丁。 ## 许可证 本项目采用 MIT 许可证授权。 有关完整的许可证文本,请参阅 [LICENSE](https://github.com/go-gitea/gitea/blob/main/LICENSE) 文件。 ## 更多信息
想了解界面概览?看看这里! ### 登录/注册页面 ![登录](https://dl.gitea.com/screenshots/login.png) ![注册](https://dl.gitea.com/screenshots/register.png) ### 用户仪表板 ![主页](https://dl.gitea.com/screenshots/home.png) ![Issue](https://dl.gitea.com/screenshots/issues.png) ![Pull Request](https://dl.gitea.com/screenshots/pull_requests.png) ![里程碑](https://dl.gitea.com/screenshots/milestones.png) ### 用户资料 ![资料](https://dl.gitea.com/screenshots/user_profile.png) ### 探索 ![仓库](https://dl.gitea.com/screenshots/explore_repos.png) ![用户](https://dl.gitea.com/screenshots/explore_users.png) ![组织](https://dl.gitea.com/screenshots/explore_orgs.png) ### 仓库 ![主页](https://dl.gitea.com/screenshots/repo_home.png) ![提交](https://dl.gitea.com/screenshots/repo_commits.png) ![分支](https://dl.gitea.com/screenshots/repo_branches.png) ![标签](https://dl.gitea.com/screenshots/repo_labels.png) ![里程碑](https://dl.gitea.com/screenshots/repo_milestones.png) ![发行版](https://dl.gitea.com/screenshots/repo_releases.png) ![标签](https://dl.gitea.com/screenshots/repo_tags.png) #### 仓库 Issue ![列表](https://dl.gitea.com/screenshots/repo_issues.png) ![Issue](https://dl.gitea.com/screenshots/repo_issue.png) #### 仓库 Pull Request ![列表](https://dl.gitea.com/screenshots/repo_pull_requests.png) ![Pull Request](https://dl.gitea.com/screenshots/repo_pull_request.png) ![文件](https://dl.gitea.com/screenshots/repo_pull_request_file.png) ![提交](https://dl.gitea.com/screenshots/repo_pull_request_commits.png) #### 仓库 Actions ![列表](https://dl.gitea.com/screenshots/repo_actions.png) ![详情](https://dl.gitea.com/screenshots/repo_actions_run.png) #### 仓库动态 ![动态](https://dl.gitea.com/screenshots/repo_activity.png) ![贡献者](https://dl.gitea.com/screenshots/repo_contributors.png) ![代码频率](https://dl.gitea.com/screenshots/repo_code_frequency.png) ![最近提交](https://dl.gitea.com/screenshots/repo_recent_commits.png) ### 组织 ![主页](https://dl.gitea.com/screenshots/org_home.png)
标签:DevOps平台, EVTX分析, EVTX分析, Gitea, GitHub替代, Git服务, Gogs分支, Go语言, HTTPX, LangChain, Linux 内核安全, MITM代理, 云安全, 代码仓库, 代码审查, 代码托管, 包管理, 团队协作, 安全可观测性, 开源框架, 持续部署, 持续集成, 日志审计, 版本控制, 程序破解, 自托管, 请求拦截, 软件开发工具包, 软件研发管理, 轻量级, 项目管理