2014-07-19 53 views
1

我在本地使用rm -rf從位置刪除文件。當我嘗試P4同步文件名但我沒有得到文件名和獲取消息該文件是更新。我曾經在cvs中運行類似的命令來獲取文件cvs update filename從Perforce獲取文件

回答

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. 
+0

非常感謝您的回覆... – user765443