https://github.com/mpdroog/github_mirror_gitea
Sync GitHub to Gitea
https://github.com/mpdroog/github_mirror_gitea
gitea github github-api mirrored-repositories php
Last synced: 6 days ago
JSON representation
Sync GitHub to Gitea
- Host: GitHub
- URL: https://github.com/mpdroog/github_mirror_gitea
- Owner: mpdroog
- Created: 2019-03-16T13:02:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-30T12:45:23.000Z (over 2 years ago)
- Last Synced: 2024-12-20T03:03:25.726Z (about 1 year ago)
- Topics: gitea, github, github-api, mirrored-repositories, php
- Language: PHP
- Size: 5.86 KB
- Stars: 10
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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!
```bash
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.