I am looking for a perforce integrate/get-latest command which would fetch the latest/updated-code and remove the files/folders that have been moved/deleted from the perforce(server) repository.
Is there any way by which I can get a clean copy of the perforce repository, without creating a new workspace/local directory?
Thanks for your interest.
What you’re looking for is the sync command. It will grab the latest files, and it will remove any files that were deleted. I’m pretty sure it won’t remove the directories, though, at least not on Windows.
To get a clean copy, you can delete the local files, and sync using the ‘-f’ flag.