debian-mirror-gitlab/doc/raketasks/features.md

34 lines
1.1 KiB
Markdown
Raw Normal View History

2021-01-29 00:20:46 +05:30
---
2021-03-11 19:13:27 +05:30
stage: Enablement
group: Distribution
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2021-01-29 00:20:46 +05:30
---
2021-03-11 19:13:27 +05:30
# Namespaces **(FREE SELF)**
2020-05-24 23:13:21 +05:30
This Rake task enables [namespaces](../user/group/index.md#namespaces) for projects.
2014-09-02 18:07:02 +05:30
## Enable usernames and namespaces for user projects
2021-02-22 17:27:13 +05:30
This command enables the namespaces feature introduced in GitLab 4.0. It moves every project in its namespace folder.
2014-09-02 18:07:02 +05:30
2021-02-22 17:27:13 +05:30
The **repository location changes as part of this task**, so you must **update all your Git URLs** to
point to the new location.
2014-09-02 18:07:02 +05:30
2021-03-11 19:13:27 +05:30
To change your username:
1. In the top-right corner, select your avatar.
1. Select **Edit profile**.
1. In the left sidebar, select **Account**.
1. In the **Change username** section, type the new username.
1. Select **Update username**.
2014-09-02 18:07:02 +05:30
2020-05-24 23:13:21 +05:30
For example:
2014-09-02 18:07:02 +05:30
2020-05-24 23:13:21 +05:30
- Old path: `git@example.org:myrepo.git`.
- New path: `git@example.org:username/myrepo.git` or `git@example.org:groupname/myrepo.git`.
2014-09-02 18:07:02 +05:30
2020-04-08 14:13:33 +05:30
```shell
2014-09-02 18:07:02 +05:30
bundle exec rake gitlab:enable_namespaces RAILS_ENV=production
```