2020-10-30 17:08:52 -04:00
---
stage: none
group: unassigned
2020-11-26 01:09:20 -05:00
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
2020-10-30 17:08:52 -04:00
---
2020-04-28 20:09:38 -04:00
# Namespaces **(CORE ONLY)**
2014-04-24 18:48:22 -04:00
2020-04-21 11:21:10 -04:00
This Rake task enables [namespaces ](../user/group/index.md#namespaces ) for projects.
2014-04-24 18:48:22 -04:00
## Enable usernames and namespaces for user projects
2020-11-19 16:09:07 -05:00
This command enables the namespaces feature introduced in GitLab 4.0. It moves every project in its namespace folder.
2014-04-24 18:48:22 -04:00
Note:
2020-11-19 16:09:07 -05:00
- The **repository location changes as part of this task** , so you must **update all your Git URLs** to
2020-04-21 11:21:10 -04:00
point to the new location.
- The username can be changed at **Profile > Account** .
2014-04-24 18:48:22 -04:00
2020-04-21 11:21:10 -04:00
For example:
2014-04-24 18:48:22 -04:00
2020-04-21 11:21:10 -04:00
- Old path: `git@example.org:myrepo.git` .
- New path: `git@example.org:username/myrepo.git` or `git@example.org:groupname/myrepo.git` .
2014-04-24 18:48:22 -04:00
2020-03-02 22:08:31 -05:00
```shell
2014-04-24 18:48:22 -04:00
bundle exec rake gitlab:enable_namespaces RAILS_ENV=production
```