xxxxxxxxxx
# Revert changes to modified files.
git reset --hard
# Remove all untracked files and directories.
# '-f' is force, '-d' is remove directories.
git clean -fd
xxxxxxxxxx
//CHECK FOR UNCOMMITED CHANGES
git status -s
//If there are no changes has no output
//If there are changes are listed the modified files