snippetbashTip
p4 — Perforce Version Control System. More information: <https://help.perforce.com/helix-core/server-apps
Viewed 0 times
commandperforceclicontrolp4moreversionsystem
Problem
How to use the
p4 command: Perforce Version Control System. More information: <https://help.perforce.com/helix-core/server-apps/cmdref/current/Content/CmdRef/commands.html>.Solution
p4 — Perforce Version Control System. More information: <https://help.perforce.com/helix-core/server-apps/cmdref/current/Content/CmdRef/commands.html>.Log in to the Perforce service:
p4 login -aCreate a client:
p4 clientCopy files from depot into the client workspace:
p4 syncCreate or edit changelist description:
p4 changeOpen a file to edit:
p4 edit -c {{changelist_number}} {{path/to/file}}Open a new file to add it to the depot:
p4 addDisplay list of files modified by changelist:
p4 describe -c {{changelist_number}}Submit a changelist to the depot:
p4 submit -c {{changelist_number}}Code Snippets
Log in to the Perforce service
p4 login -aCreate a client
p4 clientCopy files from depot into the client workspace
p4 syncCreate or edit changelist description
p4 changeOpen a file to edit
p4 edit -c {{changelist_number}} {{path/to/file}}Context
tldr-pages: common/p4
Revisions (0)
No revisions yet.