docs: update zh-tw (#265)

Reviewed-on: https://gitea.com/gitea/docs/pulls/265
Reviewed-by: Lunny Xiao <[email protected]>
Co-authored-by: ifurther <[email protected]>
Co-committed-by: ifurther <[email protected]>
This commit is contained in:
ifurther
2025-09-03 21:00:35 +00:00
committed by techknowlogick
parent 908a27589d
commit cb462089e9
88 changed files with 3545 additions and 3423 deletions
@@ -8,37 +8,37 @@ aliases:
# AGit
在 Gitea `1.13` 版本中,添加了对 [AGit](https://git-repo.info/zh/2020/03/agit-flow-and-git-repo/) 的支持。AGit 允许用户在没有仓库写入权限的情况下直接建拉取求,也不需要分叉仓库。这有助于减少重复仓库的数量,降低不必要的磁盘使用量。
在 Gitea `1.13` 版本中,添加了对 [AGit](https://git-repo.info/zh/2020/03/agit-flow-and-git-repo/) 的支持。AGit 允许使用者在没有存放庫写入权限的情况下直接建拉取求,也不需要分叉存放庫。这有助于减少重复存放庫的数量,降低不必要的硬碟使用量。
:::note
服务器端需要 Git 版本 2.29 或更高版本才能正常运行。
:::
## 使用 AGit 建 PR
## 使用 AGit 建 PR
AGit 允许在推送代码到远程仓库时创建 PR(合并请求)。
在推送时使用特定的 refspec(git 中已知的位置标识符),可以实这一功能。
AGit 允许在推送代码到远程存放庫时建立 PR(合並請求)。
在推送时使用特定的 refspec(git 中已知的位置标识符),可以实这一功能。
下面的示例说明了这一点:
```shell
git push origin HEAD:refs/for/main
```
命令的结构如下:
命令的结构如下:
- `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>/<session>`:要打开 PR 的目标分支
- `-o <topic|title|description>`PR 的
- `-o <topic|title|description>`PR 的
- `title`PR 的标题
- `topic`PR 应该打开的分支名
- `topic`PR 應該打开的分支名
- `description`PR 的描述
- `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"