Previous Table of Contents Index Next
Perforce 2009.1: Command Reference



p4 move
Synopsis
Move (rename) a file from one location to another.
Syntax
p4 [g-opts] move [ -c change ] [ -n ] [ -t filetype ] fromFile toFile
Description
The p4 move command takes a file already opened for edit or add and moves it to the destination provided.
An open file may be moved many times before it is submitted; moving a file back to its original location undoes the pending move, leaving it open for edit. Using p4 revert on a moved file both undoes the move and reverts the unsubmitted content.
Options
-c change
-t filetype
Usage Notes
Can File Arguments Use
Revision Specifier?
fromFile: Yes
toFile: No
read access for fromFile
write access for toFile
Files must be open for add or open for edit before they can be moved.
Examples
Assuming that file1.c is open for add or edit, move file1.c to file2.c.


Previous Table of Contents Index Next

Perforce 2009.1: Command Reference
Copyright 1999-2009 Perforce Software.