[SCM] source code management-Basic perforce operations

Source: Internet
Author: User
Tags perforce

The basic operations of P4 are based on p4v, and p4v is a cross-platform P4 visual client.

 

1) logon and environment variables. Server, which is equal to the value of the environment variable p4port, indicating the address of the P4 server; user, which is equal to the value of the environment variable p4user, which is the P4 user name and uniquely identifies a user; workspace, equal to the p4clint value, indicating the correspondence between the server and the local directory.

 

 

2) workspace, also known as client spec, represents the directory correspondence between the server and the local source code.

 

 

3) Add a new file and choose workspace> right-click a file or folder> mark for ADD.

 

 

4) delete the file, right-click the file or folder, and choose mark for Delete.

 

 

5) modify some files and choose depot> right-click a file or folder> checkout.

 

 

6) changelist: each submit submission corresponds to a unique changelist.

 

 

7) One commit, with the action pending-> default (pending change list)-> submit

 

For example, submit:

 

 

8) to compare different files or folders, right-click a file or folder and choose diffagainst.

 

 

9) modify the file history. The operation is depot-> select a file or file-> file history (Folder history)

 

 

10) SynchronizationCode, The operation is depot-> right-click a file or folder-> Get latest revision (get Revision)

 

 

Complete!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.