Link Search Menu Expand Document

grestore, grestorestaged

Select the unstaged (working tree) files to restore to HEAD with grestore.
It provides a prompt before removing the changes.
Select the files to unstage with grestorestaged.

Table of contents

  1. Demo
  2. Internals
  3. Implementation

Demo

Internals

git restore <filepath>
restore working tree files

Implementation