【发布时间】:2017-06-23 00:56:03
【问题描述】:
我想将我的所有文件从 Git Repo A 移动到具有完整历史记录的 Git Repo B。 Git B 已经包含另一个项目文件。我尝试了几种方法,例如
How to move files from one git repo to another (not a clone), preserving history
我尝试通过终端执行所有提交。但我在执行git filter-branch --subdirectory-filter muDirectory -- --all 时收到"git filter-branch fatal:myDirectory/: 'myDirectory' is outside repository Could not get the commits"。
我需要详细的指导,逐步将所有文件从一个存储库移动到另一个存储库。非常感谢任何帮助,在此先感谢。
【问题讨论】:
-
将一个存储库移动到另一个 非空 存储库后,您期望什么?
-
我的回购 B 已经有 Proj1 和 Proj2。现在我希望将 RepoA 作为 Proj3 移动到 RepoB,其中包含来自 RepoA 的所有提交历史记录。
标签: git macos version-control