> ## 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.

# 保留中の変更を取り消す

> まだコミットしていない変更を取り消す

気が変わりましたか?最近の作業に満足していませんか?まだコミットしていない変更を取り消しましょう。Diversion ではこれを `reset` と呼び、ファイルを最後のコミット時の状態に戻します。

<Steps>
  <Step title="リポジトリを開く">
    変更のあるリポジトリのワークスペースを開きます。**Files** ビューに、変更のあるファイルの一覧が表示されます。
  </Step>

  <Step title="取り消す変更を選択する">
    ファイルの隣のチェックボックスを使うか、上部のチェックボックスで全選択できます。ファイルを選択したら、ファイル一覧の右上にある赤い **Reset** ボタンをクリックします。

    <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="取り消し">
    確認ダイアログが表示されます。デフォルトでは、既存のファイルへの変更のみが取り消され、新しいファイルは削除されない点にご注意ください。新しいファイルも削除したい場合は、「Delete new files」チェックボックスをオンにしてください。

    <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>
