合并两个git项目,并保留源仓库的所有提交记录

https://blog.csdn.net/gouboft/article/details/8450696

备注两点,必须有-force权限才能push含有他人commit记录的内容.

git merge repo1 必须加--allow-unrelated-histories

原文地址:https://www.cnblogs.com/jackping/p/9814509.html