Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 859 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 859 Bytes

gogs-to-gitea

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.

How to:

  1. Copy env.ex to env and add hostnames/usernames/api keys

  2. 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
  1. Install dependencies:
  1. Run it:
./migrate_gogs_repos_by_org.sh