Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push option bonus for PTC docs #23473

Merged
merged 2 commits into from
Mar 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/content/doc/usage/push-options.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion docs/content/doc/usage/push-options.zh-tw.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
4 changes: 4 additions & 0 deletions docs/content/doc/usage/push-to-create.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" >}}).