Perforce: 'remove from workspace' from command line?

后端 未结 3 1471
悲&欢浪女
悲&欢浪女 2021-02-05 10:31

The p4v Perforce GUI client has an \'Actions > Remove from Workspace\' menu command which removes all files from the workspace that are under version control and were not opened

相关标签:
3条回答
  • 2021-02-05 10:42

    The easy way to find GUI equivalent commands (p4 CLI commands) is to look at log tab in P4V. When we take any action on P4V GUI, the "log" tab shows the corresponding P4 CLI command being executed.

    0 讨论(0)
  • 2021-02-05 10:43
    p4 sync ...#none
    
    0 讨论(0)
  • 2021-02-05 10:44

    Specifying a revision of either #none or #0 will remove the files:

    p4 sync //depot/project/...#none
    p4 sync //depot/project/...#0
    

    Use the -f switch to force removal of the files even if they are writeable (it won't affect files that are checked out, however):

    p4 sync -f //depot/project/...#0
    
    0 讨论(0)
提交回复
热议问题