[英]Sync exists git repo with p4 repo and continue working
How can I sync my git repos (with own history) to p4 repo (with own history) but files in this repos on HEAD is the same. 如何将我的git repos(具有自己的历史记录)同步到p4 repo(具有自己的历史记录),但是HEAD上此repos中的文件是相同的。
I do 我做
git clone git@git.dev.local:qwerty.git
cd qwerty
git p4 sync //path/in/your/perforce/depot
Got this graph 得到了这张图
What should I do next ? 接下来我该怎么办?
Also When I do 当我这样做的时候
git p4 rebase
I have got this error fatal: Not a valid object name HEAD~97 我有这个错误致命:不是有效的对象名称HEAD~97
Command failed: git cat-file commit HEAD~97 命令失败:git cat-file commit HEAD~97
Fundamentally I don't think you can, as you have two development histories which happen to produce the same HEAD set of files. 从根本上说,我不认为你可以,因为你有两个开发历史,恰好生成相同的HEAD文件集。
I think you'll need to either: 我想你需要:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.