Command
Explanation
git restore is used to restore working tree files (Git 2.23+). It restores the working tree files (Git 2.23+).
Examples
Discard unstaged changes
Unstage file
git restore is used to restore working tree files (Git 2.23+). It restores the working tree files (Git 2.23+).
Discard unstaged changes
Unstage file