V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
coldplayer
V2EX  ›  git

有没有可以管理多个 repository 的 git 管理工具?

  •  
  •   coldplayer · 2015-02-26 16:59:25 +08:00 · 5884 次点击
    这是一个创建于 3349 天前的主题,其中的信息可能已经有所发展或是发生改变。
    要求是 Simultaneously operate multiple repositories ...
    22 条回复    2015-02-28 09:06:11 +08:00
    hahastudio
        1
    hahastudio  
       2015-02-26 17:06:28 +08:00   ❤️ 1
    就是说会有多个保管的位置咯?
    Let me google it for you: git manage multiple repo
    比如:
    https://github.com/mixu/gr
    http://myrepos.branchable.com/
    paradislover
        2
    paradislover  
       2015-02-26 17:10:37 +08:00
    repo值得你拥有
    paradislover
        3
    paradislover  
       2015-02-26 17:11:01 +08:00
    coldplayer
        4
    coldplayer  
    OP
       2015-02-26 17:14:31 +08:00
    @hahastudio 已经google过,也是这两个工具。。但没有其他native的方式吗?比如通过配置config文件之类
    iptux
        5
    iptux  
       2015-02-26 17:19:38 +08:00 via iPhone
    要 git 原生的话就是 submodule
    linzy
        6
    linzy  
       2015-02-26 17:26:21 +08:00
    sourcetree
    endoffight
        7
    endoffight  
       2015-02-26 17:53:59 +08:00
    sourcetree +1
    jiehuangwei
        8
    jiehuangwei  
       2015-02-26 18:05:08 +08:00   ❤️ 1
    你说的 Simultaneously 是什么意思, 一个 repos,多个服务器管理中心,同时提交,同时更新? 这个可以直接在config下面配置。commit 和 update 的时候 可以 分开,也可以一个命令发送到多个服务器。
    类似这种
    [remote "bitbucket"]
    url = ssh://[email protected]/username/algorithm.git
    fetch = +refs/heads/*:refs/remotes/bitbucket/*
    [remote "github"]
    url = [email protected]:username/algorithm.git
    fetch = +refs/heads/*:refs/remotes/github/*
    [remote "all"]
    url = ssh://[email protected]/username/algorithm.git
    url = [email protected]:username/algorithm.git
    coldplayer
        9
    coldplayer  
    OP
       2015-02-26 18:19:10 +08:00
    @jiehuangwei 是多个repos,分别对应多个remote repos.
    Simultaneously: 比如一次性把今天在多个repos里提交过的代码都push到各自的remote repos;或者一次性对每个local repo执行add/commit之类。
    coldplayer
        10
    coldplayer  
    OP
       2015-02-26 19:34:06 +08:00
    @hahastudio @paradislover @jiehuangwei 开始试用 mu-repo了 https://github.com/fabioz/mu-repo
    @iptux @linzy sourcetree +10086, 但不清楚license对公司内使用是否有问题。
    jamlee
        11
    jamlee  
       2015-02-26 21:01:01 +08:00
    sourcetree +2
    SeanChense
        12
    SeanChense  
       2015-02-26 22:03:37 +08:00
    sourcetree +3
    sudoz
        13
    sudoz  
       2015-02-26 22:24:50 +08:00
    smartgit > sourcetree
    jayin
        14
    jayin  
       2015-02-27 00:07:15 +08:00
    sourcetree +4
    tinyhill
        15
    tinyhill  
       2015-02-27 00:18:39 +08:00
    sourcetree
    sinsin
        16
    sinsin  
       2015-02-27 08:58:17 +08:00
    @coldplayer 公司、团体用没问题的: https://confluence.atlassian.com/display/SOURCETREEKB/SourceTree+License+For+Corporate+Usage

    ps.不过这类工具大家都是把自己定位成DVCS的GUI前端而已,用的时候都要求去下载个PortableGit/Hg什么的,这有点“重”啊233
    openroc
        17
    openroc  
       2015-02-27 11:36:06 +08:00
    搞过repo,自己搭了一套(不含代码review那块),针对大项目比较好,不然你会有点杀鸡用牛刀的赶脚
    h4lt
        18
    h4lt  
       2015-02-27 13:15:36 +08:00
    sourcetree官网上的OSX版本下载怎么都挂了= =
    iPandx
        19
    iPandx  
       2015-02-27 19:17:23 +08:00   ❤️ 1
    @h4lt 需要翻墙。。。别问我怎么知道的
    shenqi
        20
    shenqi  
       2015-02-27 20:08:29 +08:00
    管理多个 repo 就用github 客户端。
    处理多个远程仓库,就用命令行。
    petercai
        21
    petercai  
       2015-02-28 08:29:06 +08:00
    你是指Google AOSP用的repo工具么
    faywong8888
        22
    faywong8888  
       2015-02-28 09:06:11 +08:00 via Android
    @openroc 顶。repo一般场景下确实够用了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1450 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 17:12 · PVG 01:12 · LAX 10:12 · JFK 13:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.