2020-10-30 21:08:52 +00:00
---
2021-01-19 18:11:04 +00:00
stage: Enablement
group: Distribution
2020-11-26 06:09:20 +00: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 21:08:52 +00:00
---
2021-01-28 06:08:59 +00:00
# Namespaces **(FREE SELF)**
2014-04-24 22:48:22 +00:00
2020-04-21 15:21:10 +00:00
This Rake task enables [namespaces ](../user/group/index.md#namespaces ) for projects.
2014-04-24 22:48:22 +00:00
## Enable usernames and namespaces for user projects
2020-11-19 21:09:07 +00:00
This command enables the namespaces feature introduced in GitLab 4.0. It moves every project in its namespace folder.
2014-04-24 22:48:22 +00:00
2020-12-16 03:09:46 +00:00
The **repository location changes as part of this task** , so you must **update all your Git URLs** to
point to the new location.
2014-04-24 22:48:22 +00:00
2020-12-16 03:09:46 +00:00
The username can be changed at **Profile > Account** .
2014-04-24 22:48:22 +00:00
2020-04-21 15:21:10 +00:00
For example:
2014-04-24 22:48:22 +00:00
2020-04-21 15:21:10 +00: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 22:48:22 +00:00
2020-03-03 03:08:31 +00:00
```shell
2014-04-24 22:48:22 +00:00
bundle exec rake gitlab:enable_namespaces RAILS_ENV=production
```