Perforce Cookbook

From Littledamien Wiki
Revision as of 17:28, 29 July 2014 by Video8 (talk | contribs)
Jump to navigation Jump to search

Syncing a repo from the command line

2014.1 Command Reference: Sync

At the command prompt make sure you're at the root of the client repo.

p4 -H beckster -p 1666 -u ali -c web-damien sync
  • -H Host
  • -p Port (1666 is the default)
  • -u User
  • -c client

Perforce configuration files

  • Set the P4CONFIG environment variable to the name of the local configuration file, e.g. ".p4config".
  • Create the ".p4config" file in the local repo.
  • Each setting in the file must be specified on its own line, using the format setting=value.

Example:

P4PORT=tcp:beckster:1666
P4USER=ali
P4CLIENT=web-damien