【问题标题】:Where git-p4 save information about perforce depotgit-p4 在哪里保存有关 perforce depot 的信息
【发布时间】:2019-05-25 14:23:55
【问题描述】:

我正在使用 git p4 执行从 perforce 到 git 的迁移。我需要将我的 git 存储库与 perforce 服务器保持同步。我只需要知道在 git p4 clone 之后 git-p4 将有关 perforce depot 的信息存储在哪里,然后用于 git p4 sync。

【问题讨论】:

    标签: git perforce git-p4


    【解决方案1】:

    对于基本设置,git p4 使用P4 tool chain 的标准client configuration。如果需要,您可以使用 P4 Git configuration options 覆盖它。

    当使用git p4 sync 时,git 依赖于 P4 depo 语法 + 客户端配置来确定从哪里提取更改。

    如果您想知道从 P4 CL 创建的实际修订在哪里,它们都被放入 refs/remotes/p4/master

    【讨论】:

    • 我查看了git-p4的源码,发现它正在从commit log中解析depot信息。实际上,git-p4 在提交日志中添加了仓库信息以及原始消息。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-08-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多