# Revert changes to modified files.
git reset --hard
# Remove all untracked files and directories.
# '-f' is force, '-d' is remove directories.
git clean -fd
//CHECK FOR UNCOMMITED CHANGES
git status -s
//If there are no changes has no output
//If there are changes are listed the modified files
git add .
git stash
git stash drop
git clean -fdx
# https://stackoverflow.com/a/44672195/3013522
git reset --soft HEAD~
git reset
git checkout .
git clean -fdx
use "git restore <file>..." to discard changes in working directory
use "git restore --staged <file>..." to unstage
git checkout [some_dir|file.txt]