p4 clone
Synopsis
Clone a new local Perforce server from a remote server.
Syntax
p4 [-u user] [-d dir] [-c client] clone [-m depth] [-v] -p port -r remote
p4 [-u user] [-d dir] [-c client] clone [-m depth] [-v] -p port -f filespec
Description
When you clone from a remote server, you copy the portion of its contents that you want to work with into your local server.
Options
|
|
Specifies the client name. If not specified, defaults to the name established with the p4 init command. |
|
|
Specifies the directory in which the new Perforce server is initialized. If not specified, defaults to the current directory. |
|
|
Specifies a |
|
|
Specifies the maximum number of revisions of each file to clone; a shallow clone. |
|
|
Specifies the address ( |
|
|
Specifies the remote spec call
|
|
|
Specifies the Perforce user. |
|
|
Enables verbose mode. |
Usage Notes
|
Can File Arguments Use Revision Specifier? |
Can File Arguments Use Revision Range? |
Minimal Access Level Required |
|---|---|---|
|
N/A |
N/A |
|
Examples
p4 -u bruno -d Ace clone -p perforce:1666 -f //depot/main/...
As user bruno, clone the server
perforce:1666, retrieving only the files and history
from the remote server path //depot/main/....