How to undo all uncommitted changes in Perforce?

What is a command p4to discard all my uncommitted changes in my Perforce workspace?

When using Git, a similar command: git reset --hard

+4
source share
2 answers

If you did not check the files you edited, first do

p4 reconcile ...

to get changes tracked by Perforce.

You do not need this if the changes you want to revert are already in any change list.

Then from the root of the workspace

p4 revert ...

( ...- this is the Perforce template for everything that is in this directory, not what you need to fill out).

, 2013.2 , -w p4 revert, . . .

reconcile , revert . -w , , .

+9

p4 revert - , .

, , , :

p4 revert -c changelistnumber

, , /, :

p4 revert //myWorkspace/...

+3

Source: https://habr.com/ru/post/1534479/


All Articles