Update zh tw languages and fix some broken links (#455)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <2021+silverwind@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/455
Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com>
This commit is contained in:
Lunny Xiao
2026-07-09 23:41:46 +00:00
parent c0f8a04185
commit 965c269495
652 changed files with 30864 additions and 30792 deletions

View File

@@ -9,17 +9,17 @@ aliases:
# AGit
在 Gitea `1.13` 版本中,添加了對 [AGit](https://git-repo.info/en/2020/03/agit-flow-and-git-repo/) 的支援。AGit 允許用戶在沒有庫寫入權限的情況下直接建拉取請求,也不需要分叉庫。這有助於減少重複庫的數量,降低不必要的磁盤使用量。
在 Gitea `1.13` 版本中,添加了對 [AGit](https://git-repo.info/en/2020/03/agit-flow-and-git-repo/) 的支援。AGit 允許使用者在沒有儲存庫寫入權限的情況下直接建拉取請求,也不需要分叉儲存庫。這有助於減少重複儲存庫的數量,降低不必要的磁盤使用量。
:::note
伺服器端需要 Git 版本 2.29 或更高版本才能正常運行。
:::
## 使用 AGit 建 PR
## 使用 AGit 建 PR
AGit 允許在推送碼到遠程倉庫時創建 PR合併請求
AGit 允許在推送程式碼到遠程儲存庫時建立 PR合併請求
通過在推送時使用特定的 refspecgit 中已知的位置標識符),可以實現這一功能。
下面的例說明這一點:
下面的例說明這一點:
```shell
git push origin HEAD:refs/for/main
@@ -28,10 +28,10 @@ git push origin HEAD:refs/for/main
該命令的結構如下:
- `HEAD`:目標分支
- `origin`:目標庫(不是分叉!)
- `origin`:目標儲存庫(不是分叉!)
- `HEAD`:包含您提議更改的本地分支
- `refs/<for|draft|for-review>/<branch>`:目標 PR 類型和配置
- `for`建一個以 `<branch>` 為目標分支的普通 PR
- `refs/<for|draft|for-review>/<branch>`:目標 PR 類型和設定
- `for`:建一個以 `<branch>` 為目標分支的普通 PR
- `draft`/`for-review`:目前被靜默忽略
- `<branch>/`:您希望將更改合併到的分支
- `-o <topic|title|description>`PR 的選項
@@ -41,7 +41,7 @@ git push origin HEAD:refs/for/main
- `force-push=true`: 是否強制更新目標分支。
- 注意: 省略值並僅使用 `-o force-push` 也可以正常工作。
下面是另一個高級例,用於建一個以 `topic``title``description` 為參數的新 PR目標分支是 `main`
下面是另一個高級例,用於建一個以 `topic``title``description` 為參數的新 PR目標分支是 `main`
```shell
git push origin HEAD:refs/for/main -o topic="topic_of_my_PR" -o title="Title of the PR" -o description="# The PR Description\nThis can be **any** markdown content.\n- [x] Ok"