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

有没有办法把 repo a 作为 repo b 的一个文件夹 merge 到 repo b 中并且保留 repo a 的 history?

  •  
  •   tianzhen · Apr 1, 2016 · 3632 views
    This topic created in 3888 days ago, the information mentioned may be changed or developed.
    最关键是不知道能否保留 repo a 的 history ,求教达人!
    7 replies  •  2016-04-01 17:00:27 +08:00
    47jm9ozp
    47jm9ozp
    Apr 1, 2016
    1
    你说的是 submodule?
    est
    est
    Apr 1, 2016
    2
    目测跟 github pages 相关
    tianzhen
    tianzhen
    OP
    Apr 1, 2016
    3
    @ooxxcc 我去看看 submodule 是什么,最后我会把 repo a 删除了,只留下 repo b
    tianzhen
    tianzhen
    OP
    Apr 1, 2016
    4
    @est 就是就是哈, repo a 不是 github page ,内容在 master 上, repo b 是 github page ,所以是从 repo a master 到 repo b 的 gh-pages 分支
    pagxir
    pagxir
    Apr 1, 2016 via Android❤️1
    5
    这个跟 git subtree 功能相对,可以看看 git subtree 怎么做的。 也许 subtree 才是你想要的。
    airycanon
    airycanon
    Apr 1, 2016
    6
    submodule 的话, repo a 不能删除的,相当于在 repo b 中引用了 repo a 。
    lowworker
    lowworker
    Apr 1, 2016
    7
    你可以搜下 wercker.com ,有自动集成脚本。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2557 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 11:00 · PVG 19:00 · LAX 03:00 · JFK 06:00
    ♥ Do have faith in what you're doing.