Commands for Git repos
The Git Connector A component of P4 Server that enables you mirror, cache, or replicate a Git repository into a P4 Server repo in a graph depot. See hybrid workspace. enables you work with Git repositories in one or more graph depots A depot of type graph that is used to store Git repos managed by P4 Server. See also Git Connector and classic depot.. For details, see Work with Git in the P4 Server Administration Documentation.
To learn about the commands, see:
- Commands that differ for graph depots
- Graph depot commands that apply solely to graph depots
Commands that differ for graph depots
Some of the existing commands behave differently for graph depots.
The P4 Server natively supports two data models for read and write operations:
-
Classic data model within P4
-
Graph data model for Git repos stored in P4 Server
The content of the online Help and command-line Help reflects the differences of these two data models:
To learn how to add the content of a graph depot repo to a P4 "stream", see p4 stream > Form Fields > Paths, where a Note gives examples.
Graph depot commands
The following graph depots commands do not apply to "classic" P4 Server depots:
Command | Command-line Help |
---|---|
p4 help-graph (graph) | p4 help-graph , which provides an introduction and useful tips |
p4 graph lfs-lock (graph) | p4 help-graph lfs-lock |
p4 graph lfs-locks (graph) | p4 help-graph lfs-locks |
p4 graph lfs-unlock (graph) | p4 help-graph lfs-unlock |
p4 graph gc (graph) | p4 help-graph gc
|
p4 graph log (graph) | p4 help-graph log
|
p4 graph purge-refhist (graph) | p4 help-graph purge-refhist
|
p4 graph rebase (graph) | p4 help-graph rebase
|
p4 graph recompute-refcnts (graph) | p4 help-graph recompute-refcnts
|
p4 graph tag (graph) | p4 help-graph tag
|
p4 graph tags (graph) | p4 help-graph tags
|
p4 graph verify (graph) | p4 help-graph verify
|
p4 pubkey (graph) | p4 help-graph pubkey
|
p4 pubkeys (graph) | p4 help-graph pubkeys
|
p4 repo (graph) | p4 help-graph repo
|
p4 repos (graph) | p4 help-graph repos
|
p4 grant-permission (graph) | p4 help-graph grant-permission
|
p4 revoke-permission (graph) | p4 help-graph revoke-permission
|
p4 check-permission (graph) | p4 help-graph check-permission
|
p4 show-permission (graph) | p4 help-graph show-permission
|
p4 show-permissions (graph) | p4 help-graph show-permissions
|
p4 show-ref (graph) | p4 help-graph show-ref
|