gitversion-controlmigrationperforcegit-p4

Perforce to Git: Clone error "No changes have been made"


I am trying to migrate a project from Perforce into Git. I am following and on the cloning step, the execution stops and a message is displayed:

No changes to import!

Not checking out any branch, use "git checkout -q -b master "

What could be the issue?

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>"

Solution

  • //depot/C:\build\mainline@all is not a valid Perforce depot path, so it makes sense that there would be no changes under it to import. Try supplying the depot path for the Perforce files that you are trying to import.

    If you're not sure, try:

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