Commands for Git repos

The Git ConnectorClosed A component of Helix Core Server that enables you mirror, cache, or replicate a Git repository into a Helix Core Server repo in a graph depot. See hybrid workspace. enables you work with Git repositories in one or more graph depotsClosed A depot of type graph that is used to store Git repos managed by Helix Core Server. See also Git Connector and classic depot.. For details, see Work with Git in Helix Core Server Administrator Guide.

To learn about the commands, see:

Commands that differ for graph depots

Some of the existing commands behave differently for graph depots.

The Helix Core Server natively supports two data models for read and write operations:

  • Classic data model within Helix Core

  • Graph data model for Git repos stored in Helix Server

The content of the online Help and command-line Help reflects the differences of these two data models:

Classic Graph Command-line Help for Graph
p4 add p4 add (graph) p4 help-graph add
p4 client p4 client (graph) p4 help-graph client
p4 delete p4 delete (graph) p4 help-graph delete
p4 describe p4 describe (graph) p4 help-graph describe
p4 diff p4 diff (graph) p4 help-graph diff
p4 diff2 p4 diff2 (graph) p4 help-graph diff2
p4 dirs p4 dirs (graph) p4 help-graph dirs
p4 edit p4 edit (graph) p4 help-graph edit
p4 filelog p4 filelog (graph) p4 help-graph filelog
p4 files p4 files (graph) p4 help-graph files
p4 fstat p4 fstat (graph) p4 help-graph fstat
p4 have p4 have (graph) p4 help-graph have
p4 lock p4 lock (graph) p4 help-graph lock
p4 merge p4 merge (graph) p4 help-graph merge
p4 opened p4 opened (graph) p4 help-graph opened
p4 print p4 print (graph) p4 help-graph print
p4 reconcile p4 reconcile (graph) p4 help-graph reconcile
p4 resolve p4 resolve (graph) p4 help-graph resolve
p4 revert p4 revert (graph) p4 help-graph revert
p4 submit p4 submit (graph) p4 help-graph submit
p4 switch p4 switch (graph) p4 help-graph switch
p4 sync p4 sync (graph) p4 help-graph sync
p4 unlock p4 unlock (graph) p4 help-graph unlock
Tip

To learn how to add the content of a graph depot repo to a Helix Core "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" Helix Core 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