Gitlab default project visibility when creating projects from terminal

前端 未结 1 1574
春和景丽
春和景丽 2021-01-28 06:46

Whenever I start a new project I add it to my Gitlab VCS (on-premise):

git init
git add .
git commit -m \"Commit message\"
git remote add origin git@git.example.         


        
相关标签:
1条回答
  • 2021-01-28 07:25

    Official docs say's no. Project's created from command line always set to Private by default.

    https://docs.gitlab.com/ee/gitlab-basics/create-project.html#push-to-create-a-new-project

    If you have access rights to the associated namespace, GitLab will automatically create a new project under that GitLab namespace with its visibility set to Private by default (you can later change it in the project’s settings)

    You can change project level from UI or using Gitlab API.

    0 讨论(0)
提交回复
热议问题