Skip to content

Commit 148f6e3

Browse files
GiteaBotlng2020
andauthored
Change the default branch in the agit docs (#27621) (#27623)
Backport #27621 by @lng2020 It's main now. relevant #27579 Co-authored-by: Nanguan Lin <[email protected]>
1 parent fa6941c commit 148f6e3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/content/usage/agit-support.en-us.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This can be done by pushing to the branch followed by a specific refspec (a loca
2626
The following example illustrates this:
2727

2828
```shell
29-
git push origin HEAD:refs/for/master
29+
git push origin HEAD:refs/for/main
3030
```
3131

3232
The command has the following structure:
@@ -42,8 +42,8 @@ The command has the following structure:
4242
- `description`: The PR description
4343
- `force-push`: confirm force update the target branch
4444

45-
Here's another advanced example for creating a new PR targeting `master` with `topic`, `title`, and `description`:
45+
Here's another advanced example for creating a new PR targeting `main` with `topic`, `title`, and `description`:
4646

4747
```shell
48-
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"
48+
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"
4949
```

docs/content/usage/agit-support.zh-cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Agit 允许在推送代码到远程仓库时创建 PR(合并请求)。
2626
下面的示例说明了这一点:
2727

2828
```shell
29-
git push origin HEAD:refs/for/master
29+
git push origin HEAD:refs/for/main
3030
```
3131

3232
该命令的结构如下:
@@ -42,8 +42,8 @@ git push origin HEAD:refs/for/master
4242
- `description`:PR 的描述
4343
- `force-push`:确认强制更新目标分支
4444

45-
下面是另一个高级示例,用于创建一个以 `topic``title``description` 为参数的新 PR,目标分支是 `master`
45+
下面是另一个高级示例,用于创建一个以 `topic``title``description` 为参数的新 PR,目标分支是 `main`
4646

4747
```shell
48-
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"
48+
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"
4949
```

0 commit comments

Comments
 (0)