Skip to content

mpdroog/github_mirror_gitea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync GitHub to Gitea

Sync all repository's (including private) from GitHub to Gitea you have access to with the given token.

A super easy solution to use GitHub as your main platform and use Gitea as your backup.

Flow

  • Github: Get all repo's you have access to (paginated)
  • Gitea: Add repo X
  • Gitea: Already exists? mirror-sync!
git clone https://github.com/mpdroog/github_mirror_gitea
cd github_mirror_gitea
cp _config.example.php config.php
vi config.php
...
php index.php -v

Create Github token: https://github.com/settings/tokens Create Gitea token: https://code.rootdev.nl/user/settings/applications

Other

mirror not working? Have a look in the logs, availably by default in /var/lib/gitea/log/gitea.log

Dependencies Just PHP7 and cURL, nothing more.

Releases

No releases published

Packages

No packages published

Languages