migration

Migrer de GitHub vers Gitea

Licence et conditions

GitHub
Un produit fermé de GitHub.
Gitea
MIT, Open source
Type de remplacement
Remplacement complet Pull requests, issues and Actions that run GitHub Actions workflows, on your own server.

Cette page est rédigée en anglais.

Compatibility

Gitea has a built-in migration form for GitHub repositories. Beyond the Git data, it can bring over items such as issues and pull requests, for which you have to enter at least your GitHub username. The migration page does not list everything the form imports.

Gitea Actions is designed to be compatible with GitHub Actions. Workflow files use the same syntax, ${{ github.xyz }} expressions keep working (the docs recommend gitea.xyz but both behave the same today), and actions referenced without a host, like actions/checkout@v4, are downloaded from github.com by default.

Before you switch

  1. Migrate each repository from Create… > New Migration, choosing GitHub as the service and entering the repository URL and credentials.
  2. To keep GitHub as the source for a while, tick This repository will be a mirror. Gitea then pulls periodically, and Synchronize Now in the repository settings forces a sync.
  3. Set up CI. Gitea Actions needs Gitea 1.19 or later and is on by default since 1.21, but jobs only run on a Gitea Runner you register yourself with ./runner register --instance <instance> --token <token>, at instance, organization or repository level.
  4. Enable Enable Repository Actions in each repository’s settings: repositories have Actions off by default.
  5. Check your workflows against the differences below. The quickstart places workflow files in .gitea/workflows/.

Pitfalls

Guide officiel

Guide de migration de Gitea ↗

Relue le 2026-10-06.

Sources

Autres alternatives à GitHub →