Skip to content

Instantly share code, notes, and snippets.

@bulain
Last active December 17, 2015 05:59
Show Gist options
  • Save bulain/5562470 to your computer and use it in GitHub Desktop.
Save bulain/5562470 to your computer and use it in GitHub Desktop.
perforce commands
P4PORT=<port>
P4USER=<user>
P4PASSWD=<password>
P4CLIENT=<client>
P4IGNORE=<ignore>
P4DIFF=<diff>
P4EDITOR=<editor>
P4MERGE=<merge>
more client.txt | p4 client -i
p4 client -o <client>
p4 sync //depot/build/branch/...@1000
p4 sync //depot/build/branch/...@=1051
p4 sync //depot/build/branch/...@1051,@1051
p4 integrate //depot/build/branch/...@1000 //depot/bugfix/branch/...
p4 submit
p4 integrate //depot/build/branch/...@=1051 //depot/bugfix/branch/...
p4 integrate //depot/build/branch/...@1051,@1051 //depot/bugfix/branch/...
p4 resolve
p4 submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment