Skip to content

备份争议项目 / Backup Controversial Project

License

Notifications You must be signed in to change notification settings

BackRepo/sync_git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

避难所 Shelter

项目描述 Project Description

这个项目是一个用于同步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.

使用方法 / Usage

  1. Fork本仓库到你的GitHub账户。
  2. .github/workflows/sync.yml文件中,找到jobs -> sync -> strategy -> matrix -> REPO_URL,并将其值设置为你想要同步的GitHub仓库的URL。请注意,不要删除原有的git地址。
  3. 提交你的更改并推送到你的GitHub仓库。
  4. 在GitHub上,创建一个新的Pull Request到原仓库。

  1. Fork this repository to your GitHub account.
  2. In the .github/workflows/sync.yml file, find jobs -> 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.
  3. Commit your changes and push to your GitHub repository.
  4. On GitHub, create a new Pull Request to the original repository.

配置示例 Configuration Example

.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.

贡献 Contribution

如果你有任何想法或者建议,欢迎提交 issue 或者 pull request。

If you have any ideas or suggestions, feel free to submit an issue or pull request.