I occasionally accidentally write git checkout ...
, which puts me into a detached head state. I was wondering why. Here's the "dot story":
> git checkout .
# checks out current directory
> git checkout ..
# Checks out parent directory, if in repository.
> git checkout ...
# Puts into detached head state?
> git checkout ....
error: pathspec '....' did not match any file(s) known to git.