Discard all unstaged changes in the current directory (see git reset for more undo-like commands)

git checkout

git checkout .

click the source code to copy install git checkout on any operating system with command-not-found.com