| forgejo_migration_assistant.png | ||
| gitlab_clone_url.png | ||
| README.md | ||
Migration to Forgejo
Continue using GitLab until April 30th
Add the following config to your SSH config file (Typically ~/.ssh/config on Linux, safe to create if nonexistent.)
Until this is set, you will receive a key mismatch error.
Host git02.east1.us.mapleflask.net
HostName git02.east1.us.mapleflask.net
Port 222
Migrate
Please follow these steps to migrate your repos to Forgejo from Gitlab.
Once you begin the migration, you will NOT be able to pull or push any code until everyone finishes the migration and Subnet moves the endpoint.
In your SSH known_hosts file (typically ~/.ssh/known_hosts on Linux) remove any and all references to git01.east1.us.mapleflask.net. The host will be reused and if you used our old forge your system will reject the key of the new system unless this step is preformed.
- Obtain a Personal Access Token from Gitlab by visiting this link
- Or by going to
Preferences>Access>Personal Access Tokens - Click
Add new tokenand give it a name - Provide the following scopes
- read_user
- read_repository
- read_virtual_registry
- read_api
- api
- Or by going to
- Save the generated key as you will need it for each repo migration
- Open the new forge and click the plus
+button in the upper right of the page, then clickNew migration - Select GitLab
- On the GitLab, copy the HTTPS URL.
- Paste it into the migration page along with your PAT from step 1.
- Click
Migrate Repositoryand wait. DO NOT close or navigate away from the tab as the migration runs.
Switching to the new origin
ONLY DO THIS ONCE MIGRATION IS COMPLETE
To avoid needing to clone your entire repo again, follow these steps to change the origin server.
- Copy the SSH git URL of the repo you would like to move
- In your project on your PC, run the following command
git remote set-url origin <URL copied in step 1>
- Preform a pull to verify

