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!