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

如何将一个 Git 库的一部分,迁移成一个具有历史记录的新库

  •  
  •   jybox · Aug 16, 2013 · 5436 views
    This topic created in 4651 days ago, the information mentioned may be changed or developed.
    标题有点不太明朗。

    就是说我想将现有的一个 Git 库中的一部分(比如其中一个目录), 迁移到一个新的仓库。
    但我希望新的仓库里面有这些文件的历史修改记录,又没有其他无关的文件的历史记录。
    2 replies    1970-01-01 08:00:00 +08:00
    xatest
        2
    xatest  
       Aug 16, 2013
    具有历史记录的不知道,没有历史记录的可以用git subtree
    http://aoxuis.me/2013/08/07/git-subtree
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1075 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:47 · PVG 02:47 · LAX 11:47 · JFK 14:47
    ♥ Do have faith in what you're doing.