When working with Git, a common scenario is to undo changes in your working directory. The command
git checkout will replace everything in the working directory to the last committed version.
If you want to replace all files then use a dot (.) to indicate the current directory, otherwise a list the directories/files separated by spaces.
git checkout to clear any changes in the working directory.