Namespaces
Namespaces
此 Rake 任务为项目启用名称空间 .
Enable usernames and namespaces for user projects
此命令将启用 GitLab 4.0 中引入的名称空间功能. 它将移动每个项目在其名称空间文件夹中.
Note:
- 存储库位置将更改 ,因此您将需要更新所有 Git URL以指向新位置.
- 可以在个人资料>帐户中更改用户名.
例如:
- 旧路径:
git@example.org:myrepo.git
. - 新路径:
git@example.org:username/myrepo.git
或git@example.org:groupname/myrepo.git
.
bundle exec rake gitlab:enable_namespaces RAILS_ENV=production