当前位置:  开发笔记 > 编程语言 > 正文

在Perforce中删除文件的命令行语法是什么?

如何解决《在Perforce中删除文件的命令行语法是什么?》经验,为你挑选了2个好方法。

我正在创建一些与Perforce交互的构建脚本,我想标记删除一些文件.使用命令行的P4语法究竟是什么?



1> JR Lawhorne..:
p4 delete filename

(p4输出帮助删除)

delete - 打开现有文件以从库中删除它

p4删除[-c changelist#] [-n]文件...

Opens a file that currently exists in the depot for deletion.
If the file is present on the client it is removed.  If a pending
changelist number is given with the -c flag the opened file is
associated with that changelist, otherwise it is associated with
the 'default' pending changelist.

Files that are deleted generally do not appear on the have list.

The -n flag displays what would be opened for delete without actually
changing any files or metadata.



2> Michael Burr..:

教一个人钓鱼:

p4 help - 获得通用命令语法

p4 help commands - 列出命令

p4 help - 为特定命令提供详细帮助

推荐阅读
360691894_8a5c48
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有