I accidentally edited the wrong file locally. The file is in a Perforce repo. What would be the best way to get the repo version, discarding the edited version and not changing other (edited) files?
For the question at Is there an equivalent to git stash in perforce? I see that p4 shelve
could be a possibility?
Is another possibility to delete the file? And then follow Recover deleted files from Perforce with a p4 sync -f
?