RogerBW's Blog

Migrating from Github to Codeberg 14 August 2025

I did this migration a little while back. Many people have decided to move since. Here's some detail of how I did it.

Why move? You probably know why already, though for quite a few people it seems to have been the "CEO" doubling down on insisting that everyone must use genAI, then being sacked for not being pro-genAI enough and the whole operation being rolled under Microsoft's AI division. I don't want the legal exposure of having my code potentially tainted by genAI-driven content, which is very likely to be a violation of the licences under which I wish to release it. I have no wish to support Microsoft's openwashing operation even by my participation. (Also, they still have no IPv6 connectivity.)

Why move to Codeberg? The participatory governance model, i.e. it's not just waiting to sell out and make the next billionaire. I could host Forgejo myself, and eventually I probably will, but for something like this that's not immediately essential to me I'm happy to use a third party.

Anyway, here's what I did.

Log into Github.

Create a "Personal Access Token (classic)": (profile picture), Settings, Developer Settings, Personal Access Tokens, Tokens (Classic), Generate New Token (classic).

Log into Codeberg.

Everything from this step on is per repository. If like me you have a local copy as well as the public one on Github, make sure they're up to date with each other first.

Create, New Migration, Github.

Paste in the GitHub URL, then the access token, and set repository name and anything else that's needed. The Codeberg repository gets created automatically.

I then removed all files in the the Github repostiory and replaced its README with this:

This software has moved to https://codeberg.org/...

See https://sfconservancy.org/GiveUpGitHub/ for why.

There are probably many other links you could leave there. Commit and push.

Under the repository's settings page on Github, I then Archived the repository to make it clear there would be no further updates there.

Then I just needed to set up new git remotes in my local copies of projects. That comes down to:

git remote -v |grep github to get the old remote name I was using.

git remote remove (whatever that name was)

git remote add codeberg git@codeberg.org:USERNAME/REPOSITORY.git

I didn't have any issues, pull requests, etc., to migrate so I didn't need to test those things.

The only active code left on my Github repository is the copies of other projects required when submitting pull requests to them.

Tags: computing

Add A Comment

Your Name
Your Email
Your Comment

Note that I will only approve comments that relate to the blog post itself, not ones that relate only to previous comments. This is to ensure that the blog remains outside the scope of the UK's Online Safety Act (2023).

Your submission will be ignored if any field is left blank, but your email address will not be displayed. Comments will be processed through markdown.

Search
Archive
Tags 1920s 1930s 1940s 1950s 1960s 1970s 1980s 1990s 2000s 2010s 2300ad 3d printing action advent of code aeronautics aikakirja anecdote animation anime army astronomy audio audio tech base commerce battletech bayern beer boardgaming book of the week bookmonth chain of command children chris chronicle church of no redeeming virtues cold war comedy computing contemporary cornish smuggler cosmic encounter coup covid-19 crime crystal cthulhu eternal cycling dead of winter disaster doctor who documentary drama driving drone ecchi economics en garde espionage essen 2015 essen 2016 essen 2017 essen 2018 essen 2019 essen 2022 essen 2023 essen 2024 existential risk falklands war fandom fanfic fantasy feminism film firefly first world war flash point flight simulation food garmin drive gazebo genesys geocaching geodata gin gkp gurps gurps 101 gus harpoon historical history horror horrorm science fiction hugo 2014 hugo 2015 hugo 2016 hugo 2017 hugo 2018 hugo 2019 hugo 2020 hugo 2021 hugo 2022 hugo 2023 hugo 2024 hugo 2025 hugo-nebula reread in brief avoid instrumented life javascript julian simpson julie enfield kickstarter kotlin learn to play leaving earth linux liquor lovecraftiana lua mecha men with beards mpd museum music mystery naval noir non-fiction one for the brow openscad opera parody paul temple perl perl weekly challenge photography podcast poetry politics postscript powers prediction privacy project woolsack pyracantha python quantum rail raku ranting raspberry pi reading reading boardgames social real life restaurant review reviews romance rpg a day rpgs ruby rust scala science fiction scythe second world war security shipwreck simutrans smartphone south atlantic war squaddies stationery steampunk stuarts suburbia superheroes suspense television the resistance the weekly challenge thirsty meeples thriller tin soldier torg toys trailers travel type 26 type 31 type 45 typst vietnam war war wargaming weather wives and sweethearts writing about writing x-wing young adult
Special All book reviews, All film reviews
Produced by aikakirja v0.1