git - Git p4克隆不跟随其他分支的文件更改
问题描述
我正在尝试将我的(巨大的)p4 存储库迁移到 git。我做到了p4 clone //proj/branchA@all
,它做到了预期 - 制作了一个包含创建该分支的历史的回购。问题是这个分支是从另一个分支创建的,所以第一个“提交”是Branching //proj/branchB/... to //proj/branchA/...
.
现在,当我尝试使用 Intellij Idea 查看注释时,我可以看到一直到创建文件的更改。Idea 运行的命令是filelog -i -l -t -m 1000 /path/to/file
. 日志如下:
...
... ... branch into //proj/branchC/.../file#1
... ... branch into //proj/branchX/.../file#1
change #1234 edit on ...
... ... branch into //proj/branchY/.../file#1
...
现在显然有一种方法可以跟踪文件并查看当前分支之外的更改。有人可以帮助我使用git p4
或任何其他服务转移所有历史记录吗?
解决方案
你可以做什么克隆两个分支以分离 repos,然后使用 git 将它们组合在一起。
不幸的是,我不记得如何将树枝嫁接在一起的全部细节。
推荐阅读
- python - 烧瓶登录不会跨请求持续存在
- sql - SQL 中字符串末尾的 % 符号有什么作用?
- mysql - JSON包含空数组的MySQL
- peoplesoft - 查询经理:试图引入经理的名字
- php - 如何从具有 SUM 作为查询一部分的 3 个表中进行选择?
- javascript - 检查 Facebook 页面(在 iframe 站点插件中使用)是否是隐私受限页面
- ios - 我可以在 Xcode 9.2 中为 iOS 12 开发应用程序吗?
- docker - docker 容器如何在不将共享安装在主机操作系统中的情况下获得对 Windows 共享的完全访问权限?
- sql - 使用带有条件的hierarchyid进行递归求和
- oracle - How can I SELECT based on both a NOT EQUAL and a NOT EXISTS query in Oracle with complex FROM Tables