Undo pending changes
Undo changes you haven’t committed yet with the reset
command
Changed your mind? Are you unhappy with your most recent work? Let’s undo changes you haven’t committed yet. In Diversion, this is called reset
, and will return the files to state they were in the last commit.
Go to your repo
Open the workspace of the repo where your changes are. On the left-hand side, you’ll see a list of files with changes.
Select changes to undo
Use the checkboxes next to the files, or can select all with the checkbox at the top. Once you have selected the files, click on the red button.
Undo
You’ll see a confirmation dialog. Keep in mind that by default, this only undoes changes to existing files and does not delete new files. If you want to delete new files, click on the “Delete new files” checkbox.