Project

General

Profile

Actions

Code Tile management


P4 training and usage

ENV setting (10F)

setenv P4USER p4u9
setenv P4CONFIG P4CONFIG
setenv P4PORT 10.10.25.151:1666
setenv P4DIFF diff
setenv P4EDIT vim
setenv P4PASSWD p4u9@pw

ENV setting (9F)

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 9 days ago · 8 revisions