https://github.com/arfshl/github-mirror-script
Script to mirror your GitHub accounts to another git provider
https://github.com/arfshl/github-mirror-script
github gitlab mirror-ci
Last synced: 1 day ago
JSON representation
Script to mirror your GitHub accounts to another git provider
- Host: GitHub
- URL: https://github.com/arfshl/github-mirror-script
- Owner: arfshl
- License: gpl-3.0
- Created: 2026-07-14T03:40:40.000Z (4 days ago)
- Default Branch: main
- Last Pushed: 2026-07-15T04:43:10.000Z (2 days ago)
- Last Synced: 2026-07-15T06:12:09.959Z (2 days ago)
- Topics: github, gitlab, mirror-ci
- Language: Shell
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Mirror Script
Script to mirror your GitHub accounts to another git provider, can be used with github actions or self-hosted
#### Supported git provider
- GitLab
- Codeberg
```bash
Usage: mirror.sh [OPTIONS]
Options:
--gh-user Source GitHub username (REQUIRED)
--gh-token GitHub Personal Access Token (REQUIRED)
--provider Target provider name (e.g., codeberg, gitlab) (REQUIRED)
--username Target provider username (REQUIRED)
--token Target provider Access Token (REQUIRED)
--skip-forks Do not sync repositories that are forks
--skip-archived Do not sync archived repositories
--skip-large Do not sync repositories larger than KB
--many-repo Enable API pagination loop if you have more than 100 repositories
--exclude Space-separated list of repositories to skip
--include Space-separated list of repositories to ONLY sync
-h, --help Show this help message
```
#### Github Action example
[GitLab](https://github.com/arfshl/arfshl-mirror/blob/main/.github/workflows/gitlab-mirror.yml)
[Codeberg](https://github.com/arfshl/arfshl-mirror/blob/main/.github/workflows/codeberg-mirror.yml)