link
Restore working tree files (Git 2.23+)
git restore
Discard unstaged changes
git restore file.txt
Unstage file
git restore --staged file.txt