git-p4 在不同分支和存储库上同步
我正在尝试镜像 perforce 存储库,并且 git-p4 在主分支上表现得足够好。我只需调用 git-p4 rebase 即可。我也试图镜像一个不同的分支,但这并不那么容易实现。我以为我可以做一个 git-p4 rebase --branch=p4/whatever //open/branches/whatever
但 rebase
似乎忽略了这些标签,如果我执行 sync
相反,我收到错误消息:快速导入失败:警告:未更新 refs/heads/p4/whatever (新提示 14f7e14e5079bb730363440901adee102e5f04c9 不包含 0ca89b0333f408367e3676720b109a08cc40b3ae)
我的初始导入与@all同步,为什么它无法更新,或者是否有不同/更好的方法来做到这一点?
I'm trying to mirror a perforce repository, and git-p4 performs well enough on the main branch. I simply have to call git-p4 rebase
. I'm also trying to mirror a different branch, but that's not working out so easily. I thought I could just do a git-p4 rebase --branch=p4/whatever //open/branches/whatever
but rebase
appears to ignore those tags, and if I do a sync
instead I get the error message: fast-import failed: warning: Not updating refs/heads/p4/whatever (new tip 14f7e14e5079bb730363440901adee102e5f04c9 does not contain 0ca89b0333f408367e3676720b109a08cc40b3ae)
My initial import was a sync with @all, why wouldn't it be able to update, or is there a different/better way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当你试图在 git 中拥有多个 p4 头时,git-p4 不能很好地工作。悲伤我知道。我最终所做的是将每个主/分支放在单独的 git 存储库中。据我所知,它不允许进行分支管理。
另外 @all 也不适合我,因为它试图找出分支然后失败。我只使用 git-p4 来获取最新版本并使用从那里开始的历史记录。
git-p4 doesn't work well when you try to have more than one p4 head in git. Sad I know. What I ended up doing was having each main/branch in separate git repos. It doesn't allow for branch management I know.
Also @all does not work for me either because it tries to figure out the branches and then fails. I only use git-p4 to get the latest and use the history from there onwards.