p4 repo (graph)
Create, edit, or delete a repo specification.
For depots of type graph
only.
Syntax
p4 [g-opts] repo [-d | -i] [-f] reponame
p4 repo -o reponame
Description
An administrator is the owner, which is set in the Owner:
field of the repo specification, or a user that has been granted the
admin
permission for that specific graph depot or
repo.
Such an administrator uses this command to create, edit, or delete a repo that stores files from Git users.
By default, the editor configured by the $P4EDITOR
environment variable displays the repo specification, which you can save
immediately, or after making edits.
To create a repo, you must be an admin, be the owner of the graph depot,
or have the create-repo
permission. For details about
permissions, see p4
grant-permission
.
It is a best practice when you create a repo to set the default branch. See "Specify a default branch" in the Working with Git in Helix Core Server Administrator Guide.
Options
|
Delete the repo, including the files it contains. The name of a repo cannot be the same as the name of a branch, client workspace, or label. Warning
The Helix Server cannot retrieve a deleted repo. |
|
Enable any user with the |
|
Read a repo specification from standard input. |
|
Write a repo specification to standard output. |
|
See Global options. |
Form Fields
Field Name | Description |
---|---|
|
The name of this repo. |
|
The user who created this repo. |
|
The date this specification was created. |
|
The date of the last |
|
Repo options: |
|
A short description of the repo (optional). |
|
Upstream URL this read-only repo is mirrored from. |
|
The webhook SecretToken that the
|
|
Server-Id of the git-connector that handles mirroring. |
|
Status of repo mirroring through the git-connector. |
|
Branch names to be excluded in mirroring. |
|
If |
|
The default branch to clone (such as |
Examples
To create a repo, //graphDepot1/repo8
, within the depot of
type graph
, graphDepot1
, that already
exists:
p4 repo //graphDepot1/repo8
To create a repo directly from the command line, without having to use the spec editor:
p4 repo -o //graphDepot1/repo8 | p4 repo -i
To delete a repo named //graphDepot1/repo8
:
p4 repo -d //graphDepot1/repo8
You will be prompted to use the -f
option to force
deletion:
p4 repo -f -d //graphDepot1/repo8
Usage Notes
Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required |
---|---|---|
N/A |
N/A |
|
Related Commands
To list the repos known to Helix Server |
|
To list all depots known to Helix Server |