binghe
V2EX  ›  问与答

请问有没有什么全自动的方法把 gitee 的某个仓库搬运到 GitHub 上?并且可以跟着自动更新仓库。

  •  
  •   binghe · Oct 29, 2022 · 2373 views
    This topic created in 1467 days ago, the information mentioned may be changed or developed.

    注:gitee 上的项目不是我的。

    想要把 gitee 上的某个仓库,搬运到 GitHub 上,并且能自动跟着 gitee 上的更新。

    不知道有没有什么方法可以。

    7 replies  •  2022-10-31 14:58:26 +08:00
    kkocdko
    kkocdko
    Oct 29, 2022 via Android
    1
    有很多 git mirror 的项目,例如 linux 的 repo 就是 mirror 过来的
    VDarker
    VDarker
    Oct 29, 2022 via Android
    2
    定时删除重建😪
    caomingjun
    caomingjun
    Oct 30, 2022 via Android
    3
    用 cron 脚本定时 pull push
    可以用 GitHub actions ,但是 workflow 配置文件可能要放在其他仓库
    Felldeadbird
    Felldeadbird
    Oct 30, 2022
    4
    找台服务器,cron git clone gitee 的仓库,然后 git push 到 GitHub 。
    binghe
    binghe
    OP
    Oct 30, 2022
    5
    @kkocdko #1 非常感谢,确实可以了。
    tmaller
    tmaller
    Oct 30, 2022 via Android
    6
    同 3 楼.
    1.本地 linux 服务器 crontab 定时执行脚本 pull push
    2.github 单开一个仓库通过 github action 用命令行(或 use 接口)定时同步,关键词 sync fork

    今天下午刚通过方法 2 实现 openwrt 自动同步.
    binghe
    binghe
    OP
    Oct 31, 2022
    7
    @tmaller #6 感谢,一楼提示 mirror 的时候,我去看了一下用法。然后也是弄了一个脚本通过 crontab 定时处理。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5016 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 01:47 · PVG 09:47 · LAX 17:47 · JFK 20:47
    ♥ Do have faith in what you're doing.