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

@@ -8,35 +8,35 @@ aliases:
- /zh-tw/agit-setup
---
# AGit 设置
# AGit 設定
在 Gitea `1.13` 版本中,添加了 [agit](https://git-repo.info/zh/2020/03/agit-flow-and-git-repo/) 的支
在 Gitea `1.13` 版本中,添加了 [agit](https://git-repo.info/zh/2020/03/agit-flow-and-git-repo/) 的支
## 使用 AGit 建 PR
## 使用 AGit 建 PR
AGit 允在推送代码到远程仓库时创建 PR并请求)。
在推送使用特定的 refspecgit 中已知的位置标识符),可以实现这一功能。
下面的示例说明了这一点
AGit 允在推送程式碼到遠程儲存庫時建立 PR併請求)。
在推送使用特定的 refspecgit 中已知的位置標識符),可以實現這一功能。
下面的範例說明了這一點
```shell
git push origin HEAD:refs/for/main
```
命令的结构如下:
命令的結構如下:
- `HEAD`:目分支
- `refs/<for|draft|for-review>/<branch>`:目 PR
- `for`创建一个`<branch>` 为目标分支的普通 PR
- `draft`/`for-review`:目前被默忽略
- `<branch>/<session>`:要打 PR 的目分支
- `-o <topic|title|description>`PR 的选项
- `title`PR 的标题
- `topic`PR 应该打开的分支名
- `HEAD`:目分支
- `refs/<for|draft|for-review>/<branch>`:目 PR
- `for`建立一個`<branch>` 為目標分支的普通 PR
- `draft`/`for-review`:目前被默忽略
- `<branch>/<session>`:要打 PR 的目分支
- `-o <topic|title|description>`PR 的選項
- `title`PR 的標題
- `topic`PR 應該打開的分支名
- `description`PR 的描述
- `force-push=true`: 是否制更新目分支
- 注意: 如果不值,只用 `-o force-push`法正常工作的。
- `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"