Github to Gitea (fork to store configuration outside of repo)
Go to file
2021-11-25 10:12:27 -05:00
.gitignore Initial commit 2020-05-05 12:02:26 +00:00
license.txt Stop shouting, FLOSS world. Also, generally windows users will and can never open a file without an extension. 2021-11-25 08:06:16 -05:00
main.py Add more notes about migrating. 2021-11-25 10:12:27 -05:00
readme.md Add more notes about migrating. 2021-11-25 10:12:27 -05:00
readme.zh.md Note migration issues. 2021-11-25 08:41:57 -05:00

github2gitea

Language: en | 中国人

Github repository migrated to Gitea script

Migrating github private/public repositories to gitea is an easy task, but due to network reasons, some larger projects may fail. This script will automatically filter the repositories that have been migrated, so repeat the script until the number of repositories in gitea and the number of repositories in github are the same, which means that the migration is complete. Repositories that fail to migrate by gitea will be automatically deleted by the system, so the number of repositories may fluctuate. In order to ensure the safety of code assets, you should execute it again at ten minutes after the migration is completed, until the number of repositories in gitea and the number of repositories in github are still the same.

It should be noted that before using this script, a Github Token needs to be created, and Two-factor authentication needs to be temporarily disabled.

Migrating issues

Since this only uses the Gitea API's migrate feature, it will only get issues with the "mirror" option turned off! For a discussion of the issue, see:

Note that the "Issues" option is grayed out in the migrate window if the mirror option is checked!