An open API service indexing awesome lists of open source software.

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

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)