Project

General

Profile

Actions

Code Tile management » History » Revision 7

« Previous | Revision 7/8 (diff) | Next »
jun chen, 02/26/2025 11:57 AM


Code Tile management


P4 training and usage

ENV setting

setenv P4DIFF /usr/local/bin/tkdiff
setenv P4MERGE /depot/p4_utilities/p4filemerge
setenv P4MERGE /depot/p4_utilities/p4ctmerge

setenv P4USER p4nu5
setenv P4PORT 10.210.11.201:1666
setenv P4EDITOR "gvim -f"
setenv P4PASSWD efb@nu5

p4 login

Basic usage

p4 client        # create a new client
p4 sync          # to get latest code
p4 edit xx.py    # add file to edit
p4 add  xx.py    # to add new file
p4 delete xxx    # to delete file
p4 opened        # check opened file
p4 diff          # check difference
p4 revert       
p4 submit -d "submitted by ..."

Basic usage II (directory based operation)

p4 add ...       # add all files under current directory
p4 edit ...      # edit all files under current directory
p4 revert -a ... # revert all unchanged add/edit files

Reference link: https://conf01.birentech.com/pages/viewpage.action?pageId=6836464

Local reference:

docs\jojofile\Perforce基本操作培训.pptx
docs\jojofile\SHG_Perforce基本操作培训.pptx
docs\new hier\P4_training.pptx

Git training and usage

Updated by jun chen 5 months ago · 8 revisions