# Gitea [![](https://github.com/go-gitea/gitea/actions/workflows/release-nightly.yml/badge.svg?branch=main)](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") [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 如果需要 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/) 或更高版本。 需要互聯網連接來下載 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**。謝謝! ## 翻譯 [![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)。 ## 官方和第三方項目 我們提供了一個官方的 [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://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") 如果您有任何文件未涵蓋的問題,可以在我們的 [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)] ## 贊助商 通過成為贊助商來支持這個項目。您的標誌將顯示在這裡,並帶有鏈接到您的網站。 [[成為贊助商](https://opencollective.com/gitea#sponsor)] ## 常見問題 **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) 文件以獲取完整的許可證文本。 ## 進一步信息
尋找界面概述?查看這裡! ### 登錄/註冊頁面 ![Login](https://dl.gitea.com/screenshots/login.png) ![Register](https://dl.gitea.com/screenshots/register.png) ### 用戶儀表板 ![Home](https://dl.gitea.com/screenshots/home.png) ![Issues](https://dl.gitea.com/screenshots/issues.png) ![Pull Requests](https://dl.gitea.com/screenshots/pull_requests.png) ![Milestones](https://dl.gitea.com/screenshots/milestones.png) ### 用戶資料 ![Profile](https://dl.gitea.com/screenshots/user_profile.png) ### 探索 ![Repos](https://dl.gitea.com/screenshots/explore_repos.png) ![Users](https://dl.gitea.com/screenshots/explore_users.png) ![Orgs](https://dl.gitea.com/screenshots/explore_orgs.png) ### 倉庫 ![Home](https://dl.gitea.com/screenshots/repo_home.png) ![Commits](https://dl.gitea.com/screenshots/repo_commits.png) ![Branches](https://dl.gitea.com/screenshots/repo_branches.png) ![Labels](https://dl.gitea.com/screenshots/repo_labels.png) ![Milestones](https://dl.gitea.com/screenshots/repo_milestones.png) ![Releases](https://dl.gitea.com/screenshots/repo_releases.png) ![Tags](https://dl.gitea.com/screenshots/repo_tags.png) #### 倉庫問題 ![List](https://dl.gitea.com/screenshots/repo_issues.png) ![Issue](https://dl.gitea.com/screenshots/repo_issue.png) #### 倉庫拉取請求 ![List](https://dl.gitea.com/screenshots/repo_pull_requests.png) ![Pull Request](https://dl.gitea.com/screenshots/repo_pull_request.png) ![File](https://dl.gitea.com/screenshots/repo_pull_request_file.png) ![Commits](https://dl.gitea.com/screenshots/repo_pull_request_commits.png) #### 倉庫操作 ![List](https://dl.gitea.com/screenshots/repo_actions.png) ![Details](https://dl.gitea.com/screenshots/repo_actions_run.png) #### 倉庫活動 ![Activity](https://dl.gitea.com/screenshots/repo_activity.png) ![Contributors](https://dl.gitea.com/screenshots/repo_contributors.png) ![Code Frequency](https://dl.gitea.com/screenshots/repo_code_frequency.png) ![Recent Commits](https://dl.gitea.com/screenshots/repo_recent_commits.png) ### 組織 ![Home](https://dl.gitea.com/screenshots/org_home.png)