04 June 2026 • 122 words
This is how I've migrated repositories to Codeberg:
Make a new repository on Codeberg
Add the remote to
originin the existing repository, using:git remote set-url origin --add ssh://git@codeberg.org/amberstarlight/repo.gitI could have added a different remote name, for example
codeberg, but as I am intending to remove repositories from GitHub in the future this is a simple way to make both remotes exactly the same. You could probably script this usingbasename $(pwd)or similar.Run
git pushto push the repository - this will push to allorigins, the original GitHub origin and the new Codeberg origin.Delete the GitHub repository (optional)
I haven't looked into Woodpecker CI at all yet - but I will note here that you need to request access to use it.