Migrate from git to gitea

You have a few options here.

  1. You can set IMPORT_LOCAL_PATHS to true in the [security] section of your app.ini and then migrate them from a local path.
    Link to docs for IMPORT_LOCAL_PATHS
  2. You can set Gitea as a new remote from a checked out repository and then push.
    git remote add gitea https://my.gitea/user/repo.git and git push gitea --all && git push gitea --tags

If you do the latter, you can either create the repo first in the web UI, or enable push-to-create, in which Gitea will create non-existent repositories for you when you first push to them.
Link to docs for ENABLE_PUSH_CREATE_USER

2 Likes