Perforce Move or Rename
Here are the steps to rename or move a file or directory in Perforce.
First, create a new CL or use an existing un-submitted CL.
Second, checkout or open what you want to rename or move, like this:
p4 edit -c CL [File | Directory\...] |
---|
Next, rename or move the file or directory with this command:
p4 move -c CL [From_File | From_Directory\...] [To_File | To_Directory\...] |
---|
Renaming or moving a directory may take a long time, since you are recursively renaming or moving each and every file and subdirectory in the directory that you are moving.
Finally, do not forget to submit your CL when you are finished.
by Phil for Humanity
on 07/27/2011