aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2023-03-14 12:12:27 -0500
committerGitHub <noreply@github.com>2023-03-14 19:12:27 +0200
commit6e75739c5ba1de30c37adbd9e590674b583912c2 (patch)
tree75a6d5181a02010c38dd2a1bd614235f8a0e320a /docs
parent991ab3b5ad4a0742b3965464b8f963ad7a766958 (diff)
downloadgitea-6e75739c5ba1de30c37adbd9e590674b583912c2.tar.gz
gitea-6e75739c5ba1de30c37adbd9e590674b583912c2.zip
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 <john.olheiser@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/doc/usage/push-options.en-us.md2
-rw-r--r--docs/content/doc/usage/push-options.zh-tw.md2
-rw-r--r--docs/content/doc/usage/push-to-create.en-us.md4
3 files changed, 6 insertions, 2 deletions
diff --git a/docs/content/doc/usage/push-options.en-us.md b/docs/content/doc/usage/push-options.en-us.md
index 8d7de19609..b58a91c2cc 100644
--- a/docs/content/doc/usage/push-options.en-us.md
+++ b/docs/content/doc/usage/push-options.en-us.md
@@ -29,5 +29,5 @@ were added.
Example of changing a repository's visibility to public:
```shell
-git push -o repo.private=false -u origin master
+git push -o repo.private=false -u origin main
```
diff --git a/docs/content/doc/usage/push-options.zh-tw.md b/docs/content/doc/usage/push-options.zh-tw.md
index d6ffbe695b..558492af77 100644
--- a/docs/content/doc/usage/push-options.zh-tw.md
+++ b/docs/content/doc/usage/push-options.zh-tw.md
@@ -29,5 +29,5 @@ Gitea 從 `1.13` 版開始支援某些 [push options](https://git-scm.com/docs/g
以下範例修改儲存庫的可見性為公開:
```shell
-git push -o repo.private=false -u origin master
+git push -o repo.private=false -u origin main
```
diff --git a/docs/content/doc/usage/push-to-create.en-us.md b/docs/content/doc/usage/push-to-create.en-us.md
index be0aaacf3b..7ed3f56368 100644
--- a/docs/content/doc/usage/push-to-create.en-us.md
+++ b/docs/content/doc/usage/push-to-create.en-us.md
@@ -34,3 +34,7 @@ git push -u origin main
```
This assumes you are using an SSH remote, but you can also use HTTPS remotes as well.
+
+## Push options (bonus)
+
+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" >}}).