【问题标题】:Perforce to Git: Clone error "No changes have been made"Perforce 到 Git:克隆错误“未进行任何更改”
【发布时间】:2018-03-14 14:29:32
【问题描述】:

我正在尝试将项目从 Perforce 迁移到 Git。我正在关注并在克隆步骤中,执行停止并显示一条消息:

导入没有变化!

不签出任何分支,使用“git checkout -q -b master”

可能是什么问题?

C:\Test-Git>git p4 clone //depot/C:\build\mainline@all C:\Test-Git
Importing from //depot/C:/build/mainline@all into C:\Test-Git
Initialized empty Git repository in C:/Test-Git/.git/
No changes to import!
Not checking out any branch, use "git checkout -q -b master <branch>"

【问题讨论】:

标签: git version-control migration perforce git-p4


【解决方案1】:

//depot/C:\build\mainline@all 不是有效的 Perforce 软件仓库路径,因此在其下没有要导入的更改是有道理的。尝试为您尝试导入的 Perforce 文件提供软件仓库路径。

如果您不确定,请尝试:

git p4 clone //depot/... C:\Test-Git

【讨论】:

  • 对不起,这有点令人困惑。你能展示一个部门路径的例子吗?它会在哪里或/以及如何定位和找到我的仓库路径?
  • //depot/... 是一个仓库路径——试试那个。一个非常简短的解释是,Perforce 中的软件仓库路径就是 Web 服务器的 URL——它标识软件仓库中的文件,它是您如何与 Perforce 交互的一个非常基本和基本的部分。如果你在浏览器中输入http://www.google.com/C:\build\mainline,你将什么也得不到,因为那不是一个有效的 URL——同样的交易!
  • 太棒了,p4 depots 展示了我需要的一切 :) 非常感谢!你知道我是否可以将多个 depot 放入一个 git repo 中吗?
  • 如果传递路径//...怎么办?这就是您在 Perforce 中指定“所有仓库文件”的方式。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-06-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多