Skip to content

A bash script to migrate gogs repositories to gitea via APIs. Note this does orgs and repos only, not users

License

Notifications You must be signed in to change notification settings

DeBortoliWines/gogs-to-gitea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A bash script to migrate gogs repositories to gitea via APIs. Note this does orgs and repos only, not users

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published