How do I append one git history to another?

荒凉一梦 提交于 2019-12-05 08:01:07
VonC

The general idea is:

Once you have imported the right branch from A, you can use graft point, and then git filter-branch to turn a grafted history into "real" history, to get rid of the graft point.

I wrote this script a while ago, which handles a common case for this (append a repository's history to another repository in a subdirectory):

https://github.com/multi-io/utils/blob/master/git-append-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!