I know how to revert a single opened file. However sometimes I hit some issues where I have to revert all files attached in a single changelist or revert all open pending files (default CL or assigned CL) in a client. Is there any way to do that? I tried p4 revert -c <changelist>
where has multiple pending files. It didn't work for me. It works if I mention ALL the file names.
How to revert all open files in perforce
perforceversion control
Related Topic
- Git – How to reset or revert a file to a specific revision
- Git workflow and rebase vs merge questions
- Git – How to stop .gitignore from appearing in the list of untracked files
- Git: How to force “git pull” to overwrite local files
- Git – How to view a git log of just one user’s commits
- Git – How to get a list of Git branches, ordered by most recent commit
- Git – How to delete all Git branches which have been merged
- Git – How to see the changes in a Git commit
Best Answer
I bet you just need to provide a filespec, try
p4 revert -c <changelist> //...