【问题标题】:git-p4 sync on different branch and repogit-p4 在不同的分支和仓库上同步
【发布时间】:2011-04-23 03:09:49
【问题描述】:

我正在尝试镜像 perforce 存储库,而 git-p4 在主分支上表现得足够好。我只需致电git-p4 rebase。我也在尝试镜像一个不同的分支,但这并不容易。我以为我可以只做一个git-p4 rebase --branch=p4/whatever //open/branches/whatever,但rebase 似乎忽略了这些标签,如果我做一个sync,我会收到错误消息:fast-import failed: warning: Not updating refs/heads/p4/whatever (new tip 14f7e14e5079bb730363440901adee102e5f04c9 does not contain 0ca89b0333f408367e3676720b109a08cc40b3ae)

我的初始导入是与@all 同步,为什么它不能更新,或者有不同/更好的方法来做到这一点?

【问题讨论】:

    标签: git perforce git-p4 git-fast-import


    【解决方案1】:

    当您尝试在 git 中拥有多个 p4 头时,git-p4 无法正常工作。伤心我知道。我最终做的是将每个主/分支放在单独的 git repos 中。我知道它不允许分支管理。

    @all 也对我不起作用,因为它试图找出分支然后失败。我只使用 git-p4 来获取最新的并使用从那里开始的历史记录。

    【讨论】:

      猜你喜欢
      • 2013-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-07
      • 2013-03-08
      • 2014-01-06
      • 1970-01-01
      相关资源
      最近更新 更多