git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
coldplayer
V2EX  ›  git

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

  •  
  •   coldplayer · Feb 26, 2015 · 6947 views
    This topic created in 4107 days ago, the information mentioned may be changed or developed.
    要求是 Simultaneously operate multiple repositories ...
    22 replies    2015-02-28 09:06:11 +08:00
    hahastudio
        1
    hahastudio  
       Feb 26, 2015   ❤️ 1
    就是说会有多个保管的位置咯?
    Let me google it for you: git manage multiple repo
    比如:
    https://github.com/mixu/gr
    http://myrepos.branchable.com/
    paradislover
        2
    paradislover  
       Feb 26, 2015
    repo值得你拥有
    coldplayer
        4
    coldplayer  
    OP
       Feb 26, 2015
    @hahastudio 已经google过,也是这两个工具。。但没有其他native的方式吗?比如通过配置config文件之类
    iptux
        5
    iptux  
       Feb 26, 2015 via iPhone
    要 git 原生的话就是 submodule
    linzy
        6
    linzy  
       Feb 26, 2015
    sourcetree
    endoffight
        7
    endoffight  
       Feb 26, 2015
    sourcetree +1
    jiehuangwei
        8
    jiehuangwei  
       Feb 26, 2015   ❤️ 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
       Feb 26, 2015
    @jiehuangwei 是多个repos,分别对应多个remote repos.
    Simultaneously: 比如一次性把今天在多个repos里提交过的代码都push到各自的remote repos;或者一次性对每个local repo执行add/commit之类。
    coldplayer
        10
    coldplayer  
    OP
       Feb 26, 2015
    @hahastudio @paradislover @jiehuangwei 开始试用 mu-repo了 https://github.com/fabioz/mu-repo
    @iptux @linzy sourcetree +10086, 但不清楚license对公司内使用是否有问题。
    jamlee
        11
    jamlee  
       Feb 26, 2015
    sourcetree +2
    SeanChense
        12
    SeanChense  
       Feb 26, 2015
    sourcetree +3
    sudoz
        13
    sudoz  
       Feb 26, 2015
    smartgit > sourcetree
    jayin
        14
    jayin  
       Feb 27, 2015
    sourcetree +4
    tinyhill
        15
    tinyhill  
       Feb 27, 2015
    sourcetree
    sinsin
        16
    sinsin  
       Feb 27, 2015
    @coldplayer 公司、团体用没问题的: https://confluence.atlassian.com/display/SOURCETREEKB/SourceTree+License+For+Corporate+Usage

    ps.不过这类工具大家都是把自己定位成DVCS的GUI前端而已,用的时候都要求去下载个PortableGit/Hg什么的,这有点“重”啊233
    openroc
        17
    openroc  
       Feb 27, 2015
    搞过repo,自己搭了一套(不含代码review那块),针对大项目比较好,不然你会有点杀鸡用牛刀的赶脚
    h4lt
        18
    h4lt  
       Feb 27, 2015
    sourcetree官网上的OSX版本下载怎么都挂了= =
    iPandx
        19
    iPandx  
       Feb 27, 2015   ❤️ 1
    @h4lt 需要翻墙。。。别问我怎么知道的
    shenqi
        20
    shenqi  
       Feb 27, 2015
    管理多个 repo 就用github 客户端。
    处理多个远程仓库,就用命令行。
    petercai
        21
    petercai  
       Feb 28, 2015
    你是指Google AOSP用的repo工具么
    faywong8888
        22
    faywong8888  
       Feb 28, 2015 via Android
    @openroc 顶。repo一般场景下确实够用了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1648 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 72ms · UTC 16:26 · PVG 00:26 · LAX 09:26 · JFK 12:26
    ♥ Do have faith in what you're doing.