V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
git
Pro Git
Atlassian Git Tutorial
Pro Git 简体中文翻译
GitX
jybox
V2EX  ›  git

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

  •  
  •   jybox · Aug 16, 2013 · 5423 views
    This topic created in 4644 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   ·   2766 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 08:26 · PVG 16:26 · LAX 01:26 · JFK 04:26
    ♥ Do have faith in what you're doing.