if I use git command like this:
git checkout -- .
I know its effect is to discard all unstaged files everywhere.
Can anyone tell m
The dot stands for the current directory. The command you've mentioned means: Do a git checkout of the current directory (recursively). The double-dashes separate options from filespecs (like .).
.