How to use and commands for Linux perforce (p4)

Source: Internet
Author: User
Tags perforce

Environment variables:
Export P4PASSWD=ABCDEFG
Export p4client=dyoldfish.com
Export P4user=dyoldfish
Export p4port=192.168.1.198:1666
command:
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 # Sync all the files in the tag Dyoldfish_label
8. P4 files @dyoldfish_label #查看标签dyoldfish_label所包含的文件列表
9, P4revert #回复所有打开的文件
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, P4branches #显示所有的分支
17. P4 Delete filename #从p4删除文件
18, p4 changelists-l ... #显示当前目录下面所有文件的修改注释
19, P4 label Dyoldfish_label #新建标签 Dyoldfish_label, edit label
20, p4 tag-l Dyoldfish_label ... #把当前目录下面的所有文件添加到标签dyoldfish_label
21, p4 changes ... #当前目录的changelist
22. P4 sync@10931 #sync file @changelist
23. P4 Sync[email protected]#only Sync[email protected]
24, P4 Helprevisions #查看关于文件范围的帮助

How to use and commands for Linux perforce (p4)

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.