A bash script to migrate gogs repositories to gitea via APIs.
At best it is a(n incomplete) workaround to the problem of the gitea db schema diverging too far from gogs, and no longer being able to migrate at a database level.
NOTE: This does orgs and repos only, not users
This is not intended as a user-friendly tool - use at your own risk. I used it once for a migration in 2025, and am not planning on supporting further.
-
Copy
env.ex
toenv
and add hostnames/usernames/api keys -
Update any of the API options in the script that you may want to, eg
\"issues\": false, \ <- update to true if you want to migrate issues
- Install dependencies:
- Run it:
./migrate_gogs_repos_by_org.sh