Perforce Cookbook: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Syncing a repo from the command line == [http://www.perforce.com/perforce/perforce/doc.current/manuals/cmdref/p4_sync.html|Perforce 2014.1 Command Reference: Sync] At the...") |
No edit summary |
||
| Line 14: | Line 14: | ||
* `-c` client | * `-c` client | ||
== Perforce configuration files == | |||
* [http://www.perforce.com/perforce/doc.current/manuals/p4guide/chapter.configuration.html#DB5-24024 Configuring Perforce Settings] (Perforce Documentation) | |||
* 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: | |||
<syntaxhighlight lang="text"> | |||
P4PORT=tcp:beckster:1666 | |||
P4USER=ali | |||
P4CLIENT=web-damien | |||
</syntaxhighlight> | |||
[[Category:Perforce]] [[Category:Version Control]] [[Category:Web Development]] | [[Category:Perforce]] [[Category:Version Control]] [[Category:Web Development]] | ||
Revision as of 17:28, 29 July 2014
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
-HHost-pPort (1666 is the default)-uUser-cclient
Perforce configuration files
- Configuring Perforce Settings (Perforce Documentation)
- Set the
P4CONFIGenvironment 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