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 |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
== View files in a changelist using changelist number == | |||
'''Changelist''' > '''Describe Changelist...''' > ''enter changelist number in dialog'' | |||
== Syncing a repo from the command line == | == Syncing a repo from the command line == | ||
| Line 14: | Line 18: | ||
* `-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]] | ||
Latest revision as of 17:40, 7 August 2014
View files in a changelist using changelist number[edit]
Changelist > Describe Changelist... > enter changelist number in dialog
Syncing a repo from the command line[edit]
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[edit]
- 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