You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

push-options.zh-tw.md 717B

123456789101112131415161718192021222324252627282930313233
  1. ---
  2. date: "2020-07-06T16:00:00+02:00"
  3. title: "使用: Push Options"
  4. slug: "push-options"
  5. weight: 15
  6. toc: false
  7. draft: false
  8. menu:
  9. sidebar:
  10. parent: "usage"
  11. name: "Push Options"
  12. weight: 15
  13. identifier: "push-options"
  14. ---
  15. # Push Options
  16. Gitea 從 `1.13` 版開始支援某些 [push options](https://git-scm.com/docs/git-push#Documentation/git-push.txt--oltoptiongt)
  17. ## 支援的 Options
  18. - `repo.private` (true|false) - 修改儲存庫的可見性。
  19. 與 push-to-create 一起使用時特別有用。
  20. - `repo.template` (true|false) - 修改儲存庫是否為範本儲存庫。
  21. 以下範例修改儲存庫的可見性為公開:
  22. ```shell
  23. git push -o repo.private=false -u origin master
  24. ```