这个项目是一个用于同步GitHub仓库到GitLab的工具。它可以帮助你备份你的代码,防止因各种原因导致的仓库被屏蔽、下架、删除或违规。
请注意,我们不允许同步包含任何政治相关内容的文档仓库。
This project is a tool for synchronizing GitHub repositories to GitLab. It can help you back up your code to prevent your repositories from being blocked, removed, deleted, or violated for various reasons.
Please note that we do not allow synchronizing document (e.g. full of markdown file) repositories that contain any politically relevant content.
- Fork本仓库到你的GitHub账户。
- 在
.github/workflows/sync.yml
文件中,找到jobs
->sync
->strategy
->matrix
->REPO_URL
,并将其值设置为你想要同步的GitHub仓库的URL。请注意,不要删除原有的git地址。 - 提交你的更改并推送到你的GitHub仓库。
- 在GitHub上,创建一个新的Pull Request到原仓库。
- Fork this repository to your GitHub account.
- In the
.github/workflows/sync.yml
file, findjobs
->sync
->strategy
->matrix
->REPO_URL
and set its value to the URL of the GitHub repository you want to synchronize. Please note, do not delete the existing git addresses. - Commit your changes and push to your GitHub repository.
- On GitHub, create a new Pull Request to the original repository.
在.github/workflows/sync.yml
文件中,你可以设置多个仓库进行同步,如下所示:
In the .github/workflows/sync.yml
file, you can set multiple repositories to synchronize, as shown below:
jobs:
sync:
runs-on: ubuntu-latest
strategy:
matrix:
REPO_URL:
- 'https://github.com/2dust/v2rayN.git'
- 'https://github.com/2dust/v2rayNG.git'
你可以在这里查看已经配置的同步仓库列表。
You can view the list of configured sync repositories here.
所有同步的仓库都会被推送到我们的GitLab项目。
All synchronized repositories will be pushed to our GitLab project.
如果你有任何想法或者建议,欢迎提交 issue 或者 pull request。
If you have any ideas or suggestions, feel free to submit an issue or pull request.