我使用rm -rf从本地删除文件。当我尝试p4同步文件名但我没有得到文件名并获得文件更新的消息。我曾经在cvs中运行类似命令来获取文件 cvs update filename 。
答案 0 :(得分:2)
请参阅以下内容:http://www.perforce.com/perforce/r12.1/manuals/cmdref/sync.html。
相关部分如下。
Syntax
p4 [g-opts] sync [-f] [-L] [-k] [-n] [-q] [-m max] [file[revRange]...]
p4 [g-opts] sync [-L] [-n] [-q] [-s] [-m max] [file[revRange]...]
p4 [g-opts] sync [-L] [-n] [-p] [-q] [-m max] [file[revRange]...]
您想要的旗帜如下。
-f
Force the sync. Perforce performs the sync even if the client
workspace already has the file at the specified revision. If
the file is writable, it is overwritten.
This flag does not affect open files, but it does override the
noclobber client option.