Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I've deleted all the files in my directory. How can I get them back?

Tags:

I'm new to Perforce and, to be honest, I'm hating it. I had about 20 files in my c:\workspaces\perforce directory and I selected all of them and hit the delete key. They were all checked in before I deleted them. I've been pulling my hair out trying to figure out how to get them back (Perforce is sooooo unintuitive) but there's nothing that stands out to a n00b like me to.
How can I get the latest revisions back into the directory from Perforce?

like image 662
PingPing Avatar asked Mar 21 '13 15:03

PingPing


1 Answers

You need to do a force sync.

On the command line:

$> p4 sync -f

In the P4V GUI:

  1. Right-click on the directory to update
  2. Select 'Get Revision'
  3. In the dialog, check 'Force operation'
  4. Click 'Get Revision'
like image 102
dwikle Avatar answered Sep 22 '22 11:09

dwikle