diff options
author | Nanguan Lin <70063547+lng2020@users.noreply.github.com> | 2023-10-14 21:50:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-14 09:50:23 -0400 |
commit | e29e40d128061ac39638b37394bd15ab8c4afef3 (patch) | |
tree | 88fc546c9afce159b3de3f31608f5477d6b40165 /docs/content/usage | |
parent | 76a85a4ce90fead1eb2b743a42b41617b4592889 (diff) | |
download | gitea-e29e40d128061ac39638b37394bd15ab8c4afef3.tar.gz gitea-e29e40d128061ac39638b37394bd15ab8c4afef3.zip |
Change the default branch in the agit docs (#27621)
Diffstat (limited to 'docs/content/usage')
-rw-r--r-- | docs/content/usage/agit-support.en-us.md | 6 | ||||
-rw-r--r-- | docs/content/usage/agit-support.zh-cn.md | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/content/usage/agit-support.en-us.md b/docs/content/usage/agit-support.en-us.md index b1643d27b3..78d2d9fdf7 100644 --- a/docs/content/usage/agit-support.en-us.md +++ b/docs/content/usage/agit-support.en-us.md @@ -26,7 +26,7 @@ This can be done by pushing to the branch followed by a specific refspec (a loca The following example illustrates this: ```shell -git push origin HEAD:refs/for/master +git push origin HEAD:refs/for/main ``` The command has the following structure: @@ -42,8 +42,8 @@ The command has the following structure: - `description`: The PR description - `force-push`: confirm force update the target branch -Here's another advanced example for creating a new PR targeting `master` with `topic`, `title`, and `description`: +Here's another advanced example for creating a new PR targeting `main` with `topic`, `title`, and `description`: ```shell -git push origin HEAD:refs/for/master -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" +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" ``` diff --git a/docs/content/usage/agit-support.zh-cn.md b/docs/content/usage/agit-support.zh-cn.md index 6a2ce1c373..54210d070b 100644 --- a/docs/content/usage/agit-support.zh-cn.md +++ b/docs/content/usage/agit-support.zh-cn.md @@ -26,7 +26,7 @@ Agit 允许在推送代码到远程仓库时创建 PR(合并请求)。 下面的示例说明了这一点: ```shell -git push origin HEAD:refs/for/master +git push origin HEAD:refs/for/main ``` 该命令的结构如下: @@ -42,8 +42,8 @@ git push origin HEAD:refs/for/master - `description`:PR 的描述 - `force-push`:确认强制更新目标分支 -下面是另一个高级示例,用于创建一个以 `topic`、`title` 和 `description` 为参数的新 PR,目标分支是 `master`: +下面是另一个高级示例,用于创建一个以 `topic`、`title` 和 `description` 为参数的新 PR,目标分支是 `main`: ```shell -git push origin HEAD:refs/for/master -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" +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" ``` |