After a file has been checked out and after making modifications in that file, user might feel that the previous one was better than the modified file. So, to get the previous file we need to undo the changes made in the file.
Follow the given procedure to undo pending changes:
Select the checked out file(s) that you have modified by ticking the checkbox beside each file or select all files at once by clicking the checkbox beside the File Name column.
Click on (More button) at the top right-hand corner of the screen. A number of options within a menu appear.
Click on Undo Changes. A warning message appears which is shown below,
Click Yes to confirm. The confirmation message appears saying that the changes you have made are rolled back.