1. 程式人生 > >linux下perforce(p4)的使用方法和命令

linux下perforce(p4)的使用方法和命令

使用方法 open log bcd mman port 當前 包含 label

環境變量:
export P4PASSWD=abcdefg
export P4CLIENT=dyoldfish.com
export P4USER=dyoldfish
export P4PORT=192.168.1.198:1666
命令:
1、p4 client #配置本地信息
2、p4 sync #從perforce 下載文件
3、p4 login #登陸perforce
4、p4 help #顯示關於命令的幫助
5、p4 -h #顯示關於p4的幫助
6、p4 labels ... #顯示和這個目錄相關的標簽
7、p4 sync @dyoldfish_label #同步標簽dyoldfish_label中的所有文件
8、p4 files @dyoldfish_label #查看標簽dyoldfish_label所包含的文件列表
9、p4 revert #回復所有打開的文件
10、p4 revert -n ... #回復所有打開卻沒提交的文件
11、p4 branch dyoldfish_brach #新建分支
12、p4 integrate -b dyoldfish_brach #合並分支dyoldfish_brach中描述的文件
13、p4 opened #查看打開的文件
14、p4 help commands #查看p4所有命令的幫助
15、4 dirs -H . #顯示當前目錄
16、p4 branches #顯示所有的分支
17、 p4 delete filename #從p4刪除文件
18、p4 changelists -L ... #顯示當前目錄下面所有文件的修改註釋
19、p4 label dyoldfish_label #新建標簽 dyoldfish_label,編輯標簽
20、p4 tag -l dyoldfish_label ... #把當前目錄下面的所有文件添加到標簽 dyoldfish_label
21、p4 changes ... #當前目錄的changelist
22、 p4 sync @10931 #sync file @changelist
23、 p4 sync ...@10929 #only sync [email protected]


24、p4 help revisions #查看關於文件範圍的幫助

linux下perforce(p4)的使用方法和命令