2018-05-09 12:11:28 -04:00
|
|
|
# Namespaces
|
2014-04-24 18:48:22 -04:00
|
|
|
|
|
|
|
## Enable usernames and namespaces for user projects
|
|
|
|
|
|
|
|
This command will enable the namespaces feature introduced in v4.0. It will move every project in its namespace folder.
|
|
|
|
|
|
|
|
Note:
|
|
|
|
|
2019-08-27 04:41:50 -04:00
|
|
|
- Because the **repository location will change**, you will need to **update all your Git URLs** to point to the new location.
|
2017-02-06 09:46:58 -05:00
|
|
|
- Username can be changed at **Profile ➔ Account**.
|
2014-04-24 18:48:22 -04:00
|
|
|
|
|
|
|
**Example:**
|
|
|
|
|
|
|
|
Old path: `git@example.org:myrepo.git`
|
|
|
|
|
|
|
|
New path: `git@example.org:username/myrepo.git` or `git@example.org:groupname/myrepo.git`
|
|
|
|
|
|
|
|
```
|
|
|
|
bundle exec rake gitlab:enable_namespaces RAILS_ENV=production
|
|
|
|
```
|