I always used git checkout -- .
to clear my working directory. I thought I read somewhere that the --
was required to avoid git thinking you are passing parameters (or something)
Now a colleague told me I could drop the --
, and indeed, a quick test did exactly the same.
Is there are any difference between those two commands?
PS: Asking here because git checkout -- .
vs git checkout .
is kind of hard to google...