V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
KINGWAY
V2EX  ›  程序员

自建的 gitea 服务器, 如何能把 github 完整的公司的 repo 对应导入过来?

  •  
  •   KINGWAY · 11 天前 · 1321 次点击

    比如 https://github.com/slowmist 下面好几个 repo, 单独单词 repo 可以 migrate, 但我想一次性完整的搬到 gitea 上, 如何做?

    6 条回复    2024-04-23 14:20:16 +08:00
    AoEiuV020JP
        1
    AoEiuV020JP  
       10 天前 via Android
    写个脚本一个一个导,
    nuffin
        2
    nuffin  
       10 天前   ❤️ 1
    我以前做过的方案是把 gitea 设置成 create on push ,在 custom/conf/app.ini 里有 ENABLE_PUSH_CREATE_USER 和 ENABLE_PUSH_CREATE_ORG 。不过不太确定新版本里,这俩设定生不生效。这种方式比较适合有很多 private repo 的用户或组织账号。写脚本从 github clone 下来以后 push 进去就行了。
    infoscope
        3
    infoscope  
       10 天前 via iPhone   ❤️ 1
    git clone --mirror origin-url
    cd reponame.git

    Create newRepo
    git push --mirror newrepo-url
    pdone
        5
    pdone  
       10 天前
    只要你的服务器能访问公司的 git 服务器,直接填仓库地址就可以导入过来(如果是私有仓库可以配一下密钥),我之前是用自建的 gitea ,把 github 上的一些仓库导入到自建服务器里
    chf007
        6
    chf007  
       10 天前
    https://chf007.com/2022/11/10/gitlab-migration-coding-guidelines/

    Gitlab 迁 Coding 的,和迁 Gitea 应该一个原理,可以参考下
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1236 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:30 · PVG 01:30 · LAX 10:30 · JFK 13:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.