> ## Documentation Index
> Fetch the complete documentation index at: https://docs.diversion.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Undo pending changes

> Undo changes you haven't committed yet

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.

<Steps>
  <Step title="Go to your repo">
    Open the workspace of the repo where your changes are. In the **Files** view, you'll see a list of files with changes.
  </Step>

  <Step title="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 the red **Reset** button at the top right of the file list.

    <img src="https://mintcdn.com/diversion-2/tNxAwm8NrThaCp35/images/pending-changes-to-undo.png?fit=max&auto=format&n=tNxAwm8NrThaCp35&q=85&s=e003eba5b82df5ab4e9b14137f595afc" alt="Changes to undo" style={{width: '90%', borderRadius: '1.5rem', border: '.3rem solid #555', boxShadow: '0 0 1rem #888' }} width="494" height="321" data-path="images/pending-changes-to-undo.png" />
  </Step>

  <Step title="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.

    <img src="https://mintcdn.com/diversion-2/tNxAwm8NrThaCp35/images/pending-changes-undo-modal.png?fit=max&auto=format&n=tNxAwm8NrThaCp35&q=85&s=206da995861c6c1db49fbbbdd32c08c5" alt="Changes to undo modal" style={{width: '90%', borderRadius: '1.5rem', border: '.3rem solid #555', boxShadow: '0 0 1rem #888' }} width="692" height="370" data-path="images/pending-changes-undo-modal.png" />
  </Step>
</Steps>
