Skip to content

Commit 6e75739

Browse files
authored
Push option bonus for PTC docs (#23473)
Follow-up for #23458 I could have suggested this on the original PR, but I thought there would be more to add. Hadn't noticed the push options docs already had nearly the same shell command. 😅 Signed-off-by: jolheiser <[email protected]>
1 parent 991ab3b commit 6e75739

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

docs/content/doc/usage/push-options.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ were added.
2929
Example of changing a repository's visibility to public:
3030

3131
```shell
32-
git push -o repo.private=false -u origin master
32+
git push -o repo.private=false -u origin main
3333
```

docs/content/doc/usage/push-options.zh-tw.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Gitea 從 `1.13` 版開始支援某些 [push options](https://git-scm.com/docs/g
2929
以下範例修改儲存庫的可見性為公開:
3030

3131
```shell
32-
git push -o repo.private=false -u origin master
32+
git push -o repo.private=false -u origin main
3333
```

docs/content/doc/usage/push-to-create.en-us.md

+4
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ git push -u origin main
3434
```
3535

3636
This assumes you are using an SSH remote, but you can also use HTTPS remotes as well.
37+
38+
## Push options (bonus)
39+
40+
Push-to-create will default to the visibility defined by `DEFAULT_PUSH_CREATE_PRIVATE` in `app.ini`. To explicitly set the visibility, you can use a [push option]({{< relref "doc/usage/push-options.en-us.md" >}}).

0 commit comments

Comments
 (0)