2025-04-08 02:11:48 +08:00
# Gitea
[](https://github.com/go-gitea/gitea/actions/workflows/release-nightly.yml?query=branch%3Amain "Release Nightly")
[](https://discord.gg/Gitea "Join the Discord chat at https://discord.gg/Gitea")
2026-05-26 15:49:31 -07:00
[](https://goreportcard.com/report/gitea.dev "Go Report Card")
[](https://pkg.go.dev/gitea.dev "GoDoc")
2025-04-08 02:11:48 +08:00
[](https://github.com/go-gitea/gitea/releases/latest "GitHub release")
[](https://www.codetriage.com/go-gitea/gitea "Help Contribute to Open Source")
[](https://opencollective.com/gitea "Become a backer/sponsor of gitea")
[](https://opensource.org/licenses/MIT "License: MIT")
[](https://translate.gitea.com "Crowdin")
[English ](./README.md ) | [简体中文 ](./README.zh-cn.md )
## 目的
這個項目的目標是提供最簡單、最快速、最無痛的方式來設置自託管的 Git 服務。
由於 Gitea 是用 Go 語言編寫的,它可以在 Go 支援的所有平台和架構上運行,包括 Linux、macOS 和 Windows 的 x86、amd64、ARM 和 PowerPC 架構。這個項目自 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.com ](https://cloud.gitea.com ) 開始免費試用。
## 文件
您可以在我們的官方 [文件網站 ](https://docs.gitea.com/ ) 上找到全面的文件。
它包括安裝、管理、使用、開發、貢獻指南等,幫助您快速入門並有效地探索所有功能。
如果您有任何建議或想要貢獻,可以訪問 [文件倉庫 ](https://gitea.com/gitea/docs )
## 構建
從源代碼樹的根目錄運行:
TAGS="bindata" make build
`build` 目標分為兩個子目標:
- `make backend` 需要 [Go Stable ](https://go.dev/dl/ ),所需版本在 [go.mod ](/go.mod ) 中定義。
2026-01-22 09:30:02 +01:00
- `make frontend` 需要 [Node.js LTS ](https://nodejs.org/en/download/ ) 或更高版本以及 [pnpm ](https://pnpm.io/installation )。
2025-04-08 02:11:48 +08:00
需要互聯網連接來下載 go 和 npm 模塊。從包含預構建前端文件的官方源代碼壓縮包構建時,不會觸發 `frontend` 目標,因此可以在沒有 Node.js 的情況下構建。
更多信息:https://docs.gitea.com/installation/install-from-source
## 使用
構建後,默認情況下會在源代碼樹的根目錄生成一個名為 `gitea` 的二進制文件。要運行它,請使用:
./gitea web
> [!注意]
> 如果您對使用我們的 API 感興趣,我們提供了實驗性支援,並附有 [文件](https://docs.gitea.com/api)。
## 貢獻
預期的工作流程是:Fork -> Patch -> Push -> Pull Request
> [!注意]
>
> 1. **在開始進行 Pull Request 之前,您必須閱讀 [貢獻者指南](CONTRIBUTING.md)。**
> 2. 如果您在項目中發現了漏洞,請私下寫信給 **security@gitea.io**。謝謝!
## 翻譯
[](https://translate.gitea.com)
翻譯通過 [Crowdin ](https://translate.gitea.com ) 進行。如果您想翻譯成新的語言,請在 Crowdin 項目中請求管理員添加新語言。
您也可以創建一個 issue 來添加語言,或者在 discord 的 #translation 頻道上詢問。如果您需要上下文或發現一些翻譯問題,可以在字符串上留言或在 Discord 上詢問。對於一般的翻譯問題,文檔中有一個部分。目前有點空,但我們希望隨著問題的出現而填充它。
更多信息請參閱 [文件 ](https://docs.gitea.com/contributing/localization )。
## 官方和第三方項目
我們提供了一個官方的 [go-sdk ](https://gitea.com/gitea/go-sdk ),一個名為 [tea ](https://gitea.com/gitea/tea ) 的 CLI 工具和一個 Gitea Action 的 [action runner ](https://gitea.com/gitea/act_runner )。
我們在 [gitea/awesome-gitea ](https://gitea.com/gitea/awesome-gitea ) 維護了一個 Gitea 相關項目的列表,您可以在那裡發現更多的第三方項目,包括 SDK、插件、主題等。
## 通訊
[](https://discord.gg/Gitea "Join the Discord chat at https://discord.gg/Gitea")
如果您有任何文件未涵蓋的問題,可以在我們的 [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 )
## 支持者
感謝所有支持者! 🙏 [[成為支持者 ](https://opencollective.com/gitea#backer )]
<a href="https://opencollective.com/gitea#backers " target="_blank"><img src="https://opencollective.com/gitea/backers.svg?width=890"></a>
## 贊助商
通過成為贊助商來支持這個項目。您的標誌將顯示在這裡,並帶有鏈接到您的網站。 [[成為贊助商 ](https://opencollective.com/gitea#sponsor )]
<a href="https://opencollective.com/gitea/sponsor/0/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/gitea/sponsor/1/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/gitea/sponsor/2/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/gitea/sponsor/3/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/gitea/sponsor/4/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/gitea/sponsor/5/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/gitea/sponsor/6/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/gitea/sponsor/7/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/gitea/sponsor/8/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/gitea/sponsor/9/website" target="_blank"><img src="https://opencollective.com/gitea/sponsor/9/avatar.svg"></a>
## 常見問題
**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 ) 文件以獲取完整的許可證文本。
## 進一步信息
<details>
<summary>尋找界面概述?查看這裡!</summary>
### 登錄/註冊頁面


### 用戶儀表板




### 用戶資料

### 探索



### 倉庫







#### 倉庫問題


#### 倉庫拉取請求




#### 倉庫操作


#### 倉庫活動




### 組織

</details>