Move (rename) a file from one location to another.
p4 [g-opts] move [-c change] [-f -n -k] [-t filetype] fromFiletoFile
The p4 move
command takes a file already opened for
edit or add and moves it to the destination provided.
An open file can 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.
|
If a changelist number is provided, the files are opened in the numbered pending changelist. |
|
If a filetype is specified, the file is reopened as the new filetype. |
|
Force a move to an existing target file. The file must be synced, but not opened. The originating source file will no longer be synced to the workspace. If you use |
|
Keep existing workspace files by bypassing the renaming in the
client workspace. Use |
|
Preview the move that would be performed, without actually moving files. |
|
See Global Options. |
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
|
No |
|
add
or open for edit
before they can be moved.-f
option to force
the move.
|
Assuming that |
|
Moving open files from directory |