Skip to content

Instantly share code, notes, and snippets.

@martynjarvis
Last active December 4, 2019 10:55
Show Gist options
  • Save martynjarvis/2185a664baa12fb88ded to your computer and use it in GitHub Desktop.
Save martynjarvis/2185a664baa12fb88ded to your computer and use it in GitHub Desktop.
Perforce Cheatsheet

Perforce Cheatsheet

Useful Commands:

Check I have no changes:

p4 opened

Sync to head:

p4 sync 

To list all changelists

p4 changes -umjarvis

To list files changed by a changelist (-s omits diffs and -S lists and diff the files that are shelved)

p4 describe #changelist

To edit a changelist description:

p4 change #changelist

###Typical Workflow

Open file for editing in default changelist.

p4 edit filename 

Add new files to default changelist

p4 add filename

Write code

Create changelist (changelist number C1 is returned)

p4 change

Submit code review etc..

Submit changelist

p4 submit -c <C1> - Submit changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment