git reset –hard # Revert uncommitted changes in index
git clean -fxd # Remove newly created files that not in index
git checkout .
git clean -df
git checkout -- .
git restore .
For all tracked unstaged files use:
git checkout -- .
The . at the end is important.
use "git restore <file>..." to discard changes in working directory
use "git restore --staged <file>..." to unstage
Undoing the changes in the working directory
Use the checkout command in order to checkout the repository’s version.
RUN:
git checkout hello.html