Migrate Gitlab.com Repo to Gitlab.com While Retaining URL

Note: My company has a premium Gitlab.com subscription, in case that makes a difference in features.

My team has a repository at gitlab.com/mycompany/myteam/teamrepo and I have been tasked with migrating it to gitlab.com/mycompany/customers/myteam/teamrepo.

My manager that gave me this task mentioned briefly that it is possible to keep the same URL as the original repo. That way our pipelines, container registry, etc. wouldn’t be affected. I have been digging through documentation but I can’t find a way to do this. Could someone please confirm that this is possible and point me to some documentation on how to do this?

If it is not possible, what would be the best approach to take here? I was thinking creating the project and importing the old one would be best, but I know that mirroring is an option. I could implement mirroring and give people a couple of days to start using the new project, then flip the switch and remove the old project.

It is important that we preserve our history and registry, and if possible the project url. Any guidance would be greatly appreciated.

My team has a repository at gitlab.com /mycompany/myteam/teamrepo and I have been tasked with migrating it to gitlab.com /mycompany/customers/myteam/teamrepo.

You should be able to accomplish this using the “Transfer Project” functionality:

2 Likes

Great, just what I was looking for! Thank you for your help.

2 Likes