# Revert changes to modified files. git reset --hard # Remove all untracked files and directories. git clean -fd
If you want to revert the changes only in current working directory, use
git checkout -- .
# Revert changes to modified files. git reset --hard # Remove all untracked files and directories. git clean -fd
If you want to revert the changes only in current working directory, use
git checkout -- .